From b1b2972997c0cc2a25138082a829768c680eb811 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 25 Nov 2022 19:07:10 -0500 Subject: [PATCH] Sort the CPU temperatures for the tooltip. --- .../waybar/files/waybar_scripts/waybar_temperature_freebsd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/waybar/files/waybar_scripts/waybar_temperature_freebsd.bash b/ansible/roles/waybar/files/waybar_scripts/waybar_temperature_freebsd.bash index 25c9310..1243481 100644 --- a/ansible/roles/waybar/files/waybar_scripts/waybar_temperature_freebsd.bash +++ b/ansible/roles/waybar/files/waybar_scripts/waybar_temperature_freebsd.bash @@ -8,7 +8,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SLEEP_INTERVAL=${SLEEP_INTERVAL:-30} while true; do - current_cpu_temps=$(sysctl 'dev.cpu' | grep -E 'dev\.cpu\.[0-9]+\.temperature') + current_cpu_temps=$(sysctl 'dev.cpu' | grep -E 'dev\.cpu\.[0-9]+\.temperature' | sort) sum_temperature=0 num_temperature=0 max_temperature=0