updated dwmbar to display battery percentage
authorMatthew Owens <matthew@owens.tech>
Thu, 30 Jul 2020 09:20:35 +0000 (10:20 +0100)
committerMatthew Owens <matthew@owens.tech>
Thu, 30 Jul 2020 09:20:35 +0000 (10:20 +0100)
dwmbar

diff --git a/dwmbar b/dwmbar
index e9c1106..7095e6f 100755 (executable)
--- a/dwmbar
+++ b/dwmbar
@@ -2,6 +2,9 @@
 
 # statusbar loop
 while true; do
-       xsetroot -name "$(date +"%F %T")"
+       date=$(date +"%F %T")
+       bat=$(bat)
+
+       xsetroot -name "$bat | $date"
        sleep 1s
 done