summary refs log tree commit diff
path: root/home/.local/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-07 22:05:20 -0500
committerJune McEnroe <june@causal.agency>2021-02-07 22:21:59 -0500
commit0a054350dbedcae3618c92e8eb3a7d43836c4258 (patch)
treead25af2f5f9233a96f9c87ffcc7516f666abe2a0 /home/.local/bin
parentSet cursor theme and size (diff)
downloadsrc-0a054350dbedcae3618c92e8eb3a7d43836c4258.tar.gz
src-0a054350dbedcae3618c92e8eb3a7d43836c4258.zip
Add simple battery status and clock to xsession
I love how simple this is.
Diffstat (limited to 'home/.local/bin')
-rwxr-xr-xhome/.local/bin/clock8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/.local/bin/clock b/home/.local/bin/clock
new file mode 100755
index 00000000..4f5c8561
--- /dev/null
+++ b/home/.local/bin/clock
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -eu
+
+tput civis
+while :; do
+	printf '%3s%% %s' "$(apm -l)" "$(date +'%a %H:%M')"
+	sleep 10
+done