* bin/cpu_freq, bin/disk, bin/mem_available, bin/mem_used: use bold

font for these, to help with dark colored tty's


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-07-01 14:29:48 -07:00
commit d6e12021b1
5 changed files with 8 additions and 7 deletions

View file

@ -23,7 +23,7 @@ if [ "$1" = "--detail" ]; then
fi fi
if [ -r "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" ]; then if [ -r "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" ]; then
awk '{ printf "\005{= cW}%.1fGHz\005{-} ", $1 / 1000000 }' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq awk '{ printf "\005{=b cW}%.1fGHz\005{-} ", $1 / 1000000 }' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
else else
egrep -i -m 1 "^cpu MHz|^clock|^bogomips" /proc/cpuinfo | awk -F"[:.]" '{ printf "\005{= cW}%.1fGHz\005{-} ", $2 / 1000 }' egrep -i -m 1 "^cpu MHz|^clock|^bogomips" /proc/cpuinfo | awk -F"[:.]" '{ printf "\005{=b cW}%.1fGHz\005{-} ", $2 / 1000 }'
fi fi

View file

@ -30,4 +30,4 @@ case $MP in
/dev/*) MP=`grep "$MP" /proc/mounts | awk '{print $2}'` ;; /dev/*) MP=`grep "$MP" /proc/mounts | awk '{print $2}'` ;;
esac esac
df -h -P "$MP" | tail -n 1 | awk '{printf "\005{= MW}%sB,%s\005{-} ", $2, $5}' df -h -P "$MP" | tail -n 1 | awk '{printf "\005{=b MW}%sB,%s\005{-} ", $2, $5}'

View file

@ -39,4 +39,4 @@ else
mem="$mem" mem="$mem"
unit="KB" unit="KB"
fi fi
printf "\005{= gW}%s$unit%s\005{-}%s" "$mem" "$comma" "$whitespace" printf "\005{=b gW}%s$unit%s\005{-}%s" "$mem" "$comma" "$whitespace"

View file

@ -22,4 +22,4 @@ if [ "$1" = "--detail" ]; then
exit 0 exit 0
fi fi
free | awk '/buffers\/cache:/ {printf "\005{= gW}%.0f%%\005{-} ", 100*$3/($3 + $4)}' free | awk '/buffers\/cache:/ {printf "\005{=b gW}%.0f%%\005{-} ", 100*$3/($3 + $4)}'

5
debian/changelog vendored
View file

@ -1,8 +1,9 @@
byobu (2.19) unreleased; urgency=low byobu (2.19) unreleased; urgency=low
* UNRELEASED * bin/cpu_freq, bin/disk, bin/mem_available, bin/mem_used: use bold
font for these, to help with dark colored tty's
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 01 Jul 2009 00:17:08 -0700 -- Dustin Kirkland <kirkland@ubuntu.com> Wed, 01 Jul 2009 14:29:02 -0700
byobu (2.18-0ubuntu1) karmic; urgency=low byobu (2.18-0ubuntu1) karmic; urgency=low