From 8cf73de3a20f3b8e7d6169fb26a02c819dbe8e42 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 7 Feb 2021 22:05:20 -0500 Subject: Add simple battery status and clock to xsession I love how simple this is. --- home/.local/bin/clock | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 home/.local/bin/clock (limited to 'home/.local/bin/clock') 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 -- cgit 1.4.1