Fix temperature waybar on Linux.

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

View File

@ -1,5 +0,0 @@
- name: Install packages
package:
name:
- noise-suppression-for-voice-lv2
state: present

View File

@ -10,7 +10,7 @@ SLEEP_INTERVAL=${SLEEP_INTERVAL:-30}
function print_all_x86_pkg_temps { function print_all_x86_pkg_temps {
for thermal_zone in /sys/class/thermal/thermal_zone*; do for thermal_zone in /sys/class/thermal/thermal_zone*; do
local thermal_zone_type=$(cat "$thermal_zone/type") 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 continue
fi fi
local thermal_zone_temperature=$(cat "$thermal_zone/temp") local thermal_zone_temperature=$(cat "$thermal_zone/temp")