Fix temperature waybar on Linux.

This commit is contained in:
Tom Alexander
2024-05-20 19:17:48 -04:00
parent 38d255f0ab
commit 967f7dac16
2 changed files with 1 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ SLEEP_INTERVAL=${SLEEP_INTERVAL:-30}
function print_all_x86_pkg_temps {
for thermal_zone in /sys/class/thermal/thermal_zone*; do
local thermal_zone_type=$(cat "$thermal_zone/type")
if [ "$thermal_zone_type" != "x86_pkg_temp" ]; then
if [ "$thermal_zone_type" != "x86_pkg_temp" ] && [ "$thermal_zone_type" != "acpitz" ]; then
continue
fi
local thermal_zone_temperature=$(cat "$thermal_zone/temp")