X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=bin%2Fbin%2Fxstatusbar.sh;h=17a1b7712ae3c04f876e459651fac6b23c01b5e1;hp=f2baf510cf9f97a3f4f385fe72ff39011b717130;hb=48338303d760027e62bab963fa11a940bc0d97eb;hpb=f0b582af3f34b9f18c331bb3666b1e8ce724d88e diff --git a/bin/bin/xstatusbar.sh b/bin/bin/xstatusbar.sh index f2baf51..17a1b77 100755 --- a/bin/bin/xstatusbar.sh +++ b/bin/bin/xstatusbar.sh @@ -2,11 +2,11 @@ while :; do life=$(apm -l) - [ -e /tmp/do-fdm ] && fdm_state="FM" || fdm_state="" + flags="$(ls /tmp/stargrave-flags | perl -e 'print join " ", sort map { chomp and $_ } <>')" topinfo=$(top -b -d 1 0 | sed s/[,:]//g) meminfo=$(echo "$topinfo" | grep "^Mem") arcinfo=$(echo "$topinfo" | grep "^ARC") swpinfo=$(echo "$topinfo" | perl -ne 'print $1 if /^Swap \w+ Total (\w+) Used/') - xsetroot -name "$swpinfo $meminfo $arcinfo $fdm_state $life% $(date "+%Y-%m-%dT%H:%M:%S")" + xsetroot -name "$swpinfo $meminfo $arcinfo [$flags] $life% $(date "+%Y-%m-%dT%H:%M:%S")" sleep 20 done