From 47f3de7b0eb9f851acafc177604fcac42606a244 Mon Sep 17 00:00:00 2001 From: KRsupertux Date: Tue, 29 Jul 2025 17:07:21 +0900 Subject: [PATCH] Update bar.sh --- scripts/bar.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/bar.sh b/scripts/bar.sh index 7f98d652..1a24f761 100755 --- a/scripts/bar.sh +++ b/scripts/bar.sh @@ -10,9 +10,12 @@ interval=0 cpu() { cpu_val=$(grep -o "^[^ ]*" /proc/loadavg) + cpu_temp_raw=$(cat /sys/class/thermal/thermal_zone0/temp) + cpu_temp=$(echo "scale=1; $cpu_temp_raw / 1000" | bc) printf "^c$black^ ^b$green^ CPU" - printf "^c$white^ ^b$grey^ $cpu_val" + printf "^c$white^ ^b$grey^ $cpu_val | $cpu_temp °C" + } pkg_updates() {