Battery is available again
authorSergey Matveev <stargrave@stargrave.org>
Tue, 24 Sep 2019 10:51:38 +0000 (13:51 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 24 Sep 2019 10:51:38 +0000 (13:51 +0300)
x/.xinitrc

index af61b7856151e368caac0adbd8adf65789bd01a5..3f0453b2e0a440fe1eff78c00145dcd7cd527e26 100755 (executable)
@@ -4,7 +4,8 @@ xsetroot -solid \#222222 &
 xset b off
 # xrdb ~/.Xresources
 while :; do
-    xsetroot -name "$(date "+%Y-%m-%dT%H:%M:%S")"
+    life=$(apm -l)
+    xsetroot -name "$life% $(date "+%Y-%m-%dT%H:%M:%S")"
     sleep 20
 done &
 rm -f ~/.ssh/agent ; ssh-agent -a ~/.ssh/agent