summaryrefslogtreecommitdiff
path: root/sandbar_status
diff options
context:
space:
mode:
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