summaryrefslogtreecommitdiff
path: root/yambar_status
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2023-12-01 18:15:02 +0100
committertslil clingman <tslil@posteo.de>2023-12-01 18:15:02 +0100
commit0391990109899d3502f5330737f5993c77e80c3f (patch)
tree458a9e438d64141f7113645f7d987585550bb8d9 /yambar_status
parenta2e593a3c5e98f7e98976eb7ca7fd5ca7ab8a134 (diff)
yambar_status: time and temp for yambar
Diffstat (limited to 'yambar_status')
-rwxr-xr-xyambar_status12
1 files changed, 12 insertions, 0 deletions
diff --git a/yambar_status b/yambar_status
new file mode 100755
index 0000000..2fc331e
--- /dev/null
+++ b/yambar_status
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+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')"
+temp="GPU $(nvidia-smi --query-gpu temperature.gpu --format=csv,noheader)°C"
+temp="CPU $(sensors k10temp-pci-00c3 | grep Tctl | cut -d: -f2 | tr -d ' +') $temp"
+echo "temp|string|$temp"
+echo "time|string|$time"
+echo ""