From 0391990109899d3502f5330737f5993c77e80c3f Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Fri, 1 Dec 2023 18:15:02 +0100 Subject: yambar_status: time and temp for yambar --- yambar_status | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 yambar_status 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 "" -- cgit v1.2.3