waybar: specify hwmon path via confgen

This commit is contained in:
LordMZTE 2023-08-27 19:46:01 +02:00
parent f6c759d412
commit 91147307c7
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 4 additions and 1 deletions

View file

@ -37,7 +37,7 @@
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"hwmon-path": "<% opt.cpu_temp_hwmon %>",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",

View file

@ -22,6 +22,9 @@ opts.cursor = {
size = 24,
}
-- hwmon temperature path for CPU temp used by waybar
opts.cpu_temp_hwmon = "/sys/class/hwmon/hwmon0/temp1_input"
-- used in waybar config
opts.wayland_compositor = nil