From 122ec0b93c5411785d8a1a37090b4d59b9802631 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 16 Jun 2022 12:03:27 -0400 Subject: [PATCH] xinitrc: Add temperature gauge to status --- src/.xinitrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/.xinitrc b/src/.xinitrc index df044db..1607e31 100755 --- a/src/.xinitrc +++ b/src/.xinitrc @@ -24,7 +24,11 @@ export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx while true; do - xsetroot -name " $(date +'%H:%M:%S %a %b %d') // $(acpi | cut -f4 -d " ") " + DATE=$(date +'%H:%M:%S %a %b %d') + TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C" + BAT="$(acpi | cut -f4 -d " " | tr -d ',')" + + xsetroot -name " $DATE // $TEMP, $BAT " sleep 2 done &