From 73889b4862a045fbe86b32e594595e35214b0272 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Thu, 14 Dec 2023 20:15:38 +0100 Subject: sandbar_status: generate status text for sandbar --- sandbar_status | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 sandbar_status 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 -- cgit v1.2.3