summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortslil clingman <>2021-01-22 15:17:05 -0500
committertslil clingman <>2021-01-22 15:17:05 -0500
commit92f24df41be941d407965368a9c84b7f061fddb8 (patch)
treeb56193faed5195ed4124c486f4042e30eb9c4576
parentc0ffa4c32b140378fb51e4c4f8c8c75a67a9d572 (diff)
add dwm_status
-rwxr-xr-xdwm_status13
1 files changed, 13 insertions, 0 deletions
diff --git a/dwm_status b/dwm_status
new file mode 100755
index 0000000..947d9ad
--- /dev/null
+++ b/dwm_status
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+n=0
+while true; do
+ if [ "$(( $n % 2 ))" = "0" ]; then
+ bat="$(battery)"
+ fi;
+ time="$(date +%d/%Hh%M)"
+ temp="$(( $(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
+ xsetroot -name "$temp | $bat | $time"
+ n=$(( $n + 1 ))
+ sleep 30s
+done