diff --git a/debian/changelog b/debian/changelog index 2438b5c1..6c97697c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,13 +1,20 @@ screen-profiles (1.54) unreleased; urgency=low * bin/ip-address: don't color the whitespace + * bin/cpu-count: don't echo blank line in detailed status + * bin/updates-available: print "None" in detailed status, if no updates + are available * screen-profiles-status: ensure that all detail scripts get a chance to run * debian/copyright: there have *never* been icons in screen-profiles; remove the CC2.5 license statement, as this was erroneously copied over from another package for the initial packaging + * screen-profiles-status: color code and format the detailed status output + * screen-profiles-status-detail: use less -R to render ansi escaped + color formatting correctly; seed the search pattern with the header + for each section - -- Dustin Kirkland Fri, 01 May 2009 15:48:32 -0500 + -- Dustin Kirkland Sat, 02 May 2009 14:25:28 -0500 screen-profiles (1.53-0ubuntu1) karmic; urgency=low diff --git a/screen-profiles-status b/screen-profiles-status index 4ef36012..8c6054cd 100755 --- a/screen-profiles-status +++ b/screen-profiles-status @@ -35,6 +35,10 @@ else fi P="$1" +B='\033[34;1m' +W='\033[47m' +X='\033[0m' +HR=" " case "$P" in # default = on, user must override to turn off @@ -46,14 +50,16 @@ case "$P" in grep -qs -m1 "^$P=1$" "$HOME/.screen-profiles/status" || exit 0 ;; --detail) + printf "\033[1m" + [ -x "/usr/bin/dpkg-query" ] && /usr/bin/dpkg-query --show screen-profiles | awk '{print "# screen-profiles (" $2 ") detailed status:"}' + printf "$X\n" for i in `ls "$DIR"`; do [ "$i" = "menu" ] && continue - echo - echo " ______________________________________________________________________" - echo "/ * $i:" - out=`"$DIR"/$i --detail` || true - echo "$out" | sed "s/^/| /g" - echo "\\______________________________________________________________________" + printf "\n$W%s$X\n" "$HR" + printf "$W $X $B# %s:$X\n" "$i" + out=`"$DIR"/$i --detail | sed 's/^/\\\033[47m \\\033[0m /g'` || true + printf "$out\n" + printf "$W%s$X\n\n" "$HR" done exit 0 ;;