mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-26 07:09:02 +02:00
waybar: specify hwmon path via confgen
This commit is contained in:
parent
f6c759d412
commit
91147307c7
|
@ -37,7 +37,7 @@
|
||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
// "thermal-zone": 2,
|
// "thermal-zone": 2,
|
||||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
"hwmon-path": "<% opt.cpu_temp_hwmon %>",
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
// "format-critical": "{temperatureC}°C {icon}",
|
// "format-critical": "{temperatureC}°C {icon}",
|
||||||
"format": "{temperatureC}°C {icon}",
|
"format": "{temperatureC}°C {icon}",
|
||||||
|
|
|
@ -22,6 +22,9 @@ opts.cursor = {
|
||||||
size = 24,
|
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
|
-- used in waybar config
|
||||||
opts.wayland_compositor = nil
|
opts.wayland_compositor = nil
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue