Fix inconsistent temperature paths

This commit is contained in:
Sam A. 2023-02-04 19:57:10 +01:00
parent 26804d333b
commit 6aa3ee0a29
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,9 @@ exec pipewire-pulse
exec wireplumber exec wireplumber
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# Fix inconsistent temperature paths
exec ln -sf "$(dirname $(grep -l coretemp /sys/class/hwmon/hwmon*/name))"/temp1_input /tmp/temperature
# Make xdg-desktop-portal-wlr work properly # Make xdg-desktop-portal-wlr work properly
exec dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY exec dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY

View file

@ -82,7 +82,7 @@
"format-icons": ["", "", "", "", "", "", "", "", ""] "format-icons": ["", "", "", "", "", "", "", "", ""]
}, },
"temperature": { "temperature": {
"thermal-zone": 1, "hwmon-path": "/tmp/temperature",
"critical-threshold": 80, "critical-threshold": 80,
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-critical": "{icon} {temperatureC}°C", "format-critical": "{icon} {temperatureC}°C",