]> git.cameronkatri.com Git - dotfiles.git/commitdiff
Add lemonbar script
authorCameron Katri <me@cameronkatri.com>
Tue, 27 Jul 2021 18:19:47 +0000 (14:19 -0400)
committerCameron Katri <me@cameronkatri.com>
Tue, 27 Jul 2021 18:19:47 +0000 (14:19 -0400)
.local/bin/lemonybar [new file with mode: 0755]

diff --git a/.local/bin/lemonybar b/.local/bin/lemonybar
new file mode 100755 (executable)
index 0000000..7302e84
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+while (:); do
+       echo -n "%{c}$(date +'%I:%M (%h %d, %Y)')";
+       printf "%%{r}%s (%s)\n" $(acpiconf -i 0 --libxo=json | jq '.acpiconf."remaining-capacity", .acpiconf."remaining-time"');
+       sleep 30;
+done | lemonbar -d $@