From 9c97e0e0ca052e4474ba292ac9959752506f1f11 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Fri, 28 Mar 2025 17:56:19 -0400 Subject: [PATCH] Fix CPU temp --- dot_config/i3blocks/scripts/executable_temperature | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/i3blocks/scripts/executable_temperature b/dot_config/i3blocks/scripts/executable_temperature index 68ff2a2..796bb0a 100755 --- a/dot_config/i3blocks/scripts/executable_temperature +++ b/dot_config/i3blocks/scripts/executable_temperature @@ -2,6 +2,6 @@ . "/home/kevin/.cache/wal/colors.sh" -temps="$(sensors | rg 'temp1:.*' | awk '{ print $2 }' | rg -o '\d{2}' | \ - sort -r | sed 's/$/°C/' | tr '\n' ' ' | xargs)" -printf "%s\n\n%s\n" "$temps" "$color7" +# Read from k10temp's Tctl sensor for AMD CPU temperature +temp="$(sensors | rg 'Tctl:' | awk '{ print $2 }' | rg -o '\d{2}' | sed 's/$/°C/')" +printf "%s\n\n%s\n" "$temp" "$color7"