summaryrefslogtreecommitdiffstats
path: root/.local/bin/dwmbar
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-18 21:19:17 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-18 21:19:17 -0400
commitbf8c6b1e20f42a7725d8d919830fdb274596b20f (patch)
tree350cace6557796da593b5783eb4107ed0ca4bb49 /.local/bin/dwmbar
parente2a66c3830716e88e68d715504b5c7e5ff12bb1a (diff)
downloadeibhear-bf8c6b1e20f42a7725d8d919830fdb274596b20f.tar.gz
eibhear-bf8c6b1e20f42a7725d8d919830fdb274596b20f.tar.zst
eibhear-bf8c6b1e20f42a7725d8d919830fdb274596b20f.zip
dwmbar added to xinitrc
Diffstat (limited to '.local/bin/dwmbar')
-rwxr-xr-x.local/bin/dwmbar6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/dwmbar b/.local/bin/dwmbar
new file mode 100755
index 0000000..e5a2ffb
--- /dev/null
+++ b/.local/bin/dwmbar
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+while :; do
+ xsetroot -name "$(sed 's/^/🔋:/' /sys/class/power_supply/BAT?/capacity 2>/dev/null | tr '\n' ' ') $(date '+%Y %b %d (%a) %I:%M%p')"
+ sleep 30
+done