]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Use more advanced godwmstat
authorSergey Matveev <stargrave@stargrave.org>
Mon, 23 Aug 2021 13:08:50 +0000 (16:08 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 23 Aug 2021 13:08:50 +0000 (16:08 +0300)
bin/bin/xstatusbar.sh [deleted file]
x/.xinitrc

diff --git a/bin/bin/xstatusbar.sh b/bin/bin/xstatusbar.sh
deleted file mode 100755 (executable)
index 35bd1e6..0000000
+++ /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
index ea1b90ffcc0f1557d3cd6cce67a4b494c8bf7f22..c0a622ea70b978ca6b3ae7ccfade4fccba9d8d0e 100755 (executable)
@@ -4,6 +4,6 @@ xsetroot -solid \#222222
 xset b off
 xrdb ~/.Xresources
 xmodmap ~/.Xmodmap
 xset b off
 xrdb ~/.Xresources
 xmodmap ~/.Xmodmap
-~/bin/xstatusbar.sh &
+~/work/godwmstat/godwmstat -xsetroot &
 rm -f ~/.ssh/agent ; ssh-agent -a $SSH_AUTH_SOCK
 exec ~/src/suckless/dwm/dwm
 rm -f ~/.ssh/agent ; ssh-agent -a $SSH_AUTH_SOCK
 exec ~/src/suckless/dwm/dwm