Fix temperature waybar on Linux.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user