X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=bin%2Fbin%2Fxstatusbar.sh;h=17a1b7712ae3c04f876e459651fac6b23c01b5e1;hb=HEAD;hp=35bd1e66c22eef6b115e72f10150411a787cab0e;hpb=c7a31b65bb51cab872b72bbfe1b772e28e7bfc80;p=dotfiles.git diff --git a/bin/bin/xstatusbar.sh b/bin/bin/xstatusbar.sh deleted file mode 100755 index 35bd1e6..0000000 --- a/bin/bin/xstatusbar.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -while :; do - 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 [$flags] $(date "+%Y-%m-%dT%H:%M:%S")" - sleep 20 -done