X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=bin%2Fbin%2Fxstatusbar.sh;h=17a1b7712ae3c04f876e459651fac6b23c01b5e1;hp=f2baf510cf9f97a3f4f385fe72ff39011b717130;hb=7494330d7fa7fdd47f8cf3761ed9c9c008f0b5cd;hpb=f8ad886e2bcf071a48a624e63cafc567587fad81 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