summaryrefslogtreecommitdiff
path: root/sandbar_status
diff options
context:
space:
mode:
authortslil clingman <>2023-12-14 20:15:38 +0100
committertslil clingman <>2023-12-14 20:15:38 +0100
commit73889b4862a045fbe86b32e594595e35214b0272 (patch)
treed6fa54127443d3360ecf68df11fd4700d0959ba3 /sandbar_status
parente037fd31e144d1e76f2c96f9ce9b108711dda800 (diff)
sandbar_status: generate status text for sandbar
Diffstat (limited to 'sandbar_status')
-rwxr-xr-xsandbar_status13
1 files changed, 13 insertions, 0 deletions
diff --git a/sandbar_status b/sandbar_status
new file mode 100755
index 0000000..55aa793
--- /dev/null
+++ b/sandbar_status
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+while true; do
+ time="$(TZ=America/Chicago date +'%Z %H:%M')"
+ time="$time | $(TZ=Europe/Amsterdam date +'%Z %H:%M %Y/%m/%d')"
+ temp="CPU $(sensors k10temp-pci-00c3 | grep Tctl | cut -d: -f2 | tr -d ' +')"
+ wlp1s0="$(nmcli connection | grep wlp1s0 | cut -d\ -f1)"
+ if [ -z "$wlp1s0" ]; then wlp1s0="DN"; fi
+ wifi="WLS $wlp1s0"
+ bat="BAT $(battery)"
+ echo "all status $wifi | $bat | $temp | $time"
+ sleep 30s
+done