summaryrefslogtreecommitdiff
path: root/dwm_status
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2023-02-11 11:28:43 +0100
committertslil clingman <tslil@posteo.de>2023-02-11 11:29:09 +0100
commitd4a030c388e79ee83ed0b84cb5cae40d57051f07 (patch)
treeed246bdd25e433f292aa757b904ed9f894350e2b /dwm_status
parentd3bf6336a3f49622449b698da03f007837091dd9 (diff)
cleanup
Diffstat (limited to 'dwm_status')
-rwxr-xr-xdwm_status22
1 files changed, 14 insertions, 8 deletions
diff --git a/dwm_status b/dwm_status
index 4b551ac..75e1833 100755
--- a/dwm_status
+++ b/dwm_status
@@ -1,13 +1,19 @@
#!/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 "$(cat ~/.autolock_status)$temp | $bat | $time"
+while [ -n "$(pgrep 'somebar$')" ]; do
+ time="$(TZ=PST8PDT date +'%Z %H:%M')"
+ time="$time | $(TZ=America/Chicago date +'%Z %H:%M')"
+ time="$time | $(TZ=America/New_York date +'%Z %H:%M')"
+ time="$time | $(TZ=UTC date +'%Z %H:%M')"
+ time="$time | $(TZ=Europe/London date +'%Z %H:%M')"
+ time="$time | $(TZ=Europe/Amsterdam date +'%Z %H:%M:%S %Y/%m/%d')"
+ if [ "$(( n % 5 ))" = "0" ]; then
+ temp="CPU $(sensors k10temp-pci-00c3 | grep Tctl | cut -d: -f2 | tr -d ' +')"
+ #temp="CPU $(( $(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
+ fi
+ # xsetroot -name "$temp | $time"
+ somebar -c "status $temp | $time"
n=$(( $n + 1 ))
- sleep 30s
+ sleep 1s
done