confgen sets device temperatures

This commit is contained in:
LordMZTE 2023-01-28 19:59:59 +01:00
parent e589be73e9
commit 6ef9f64084
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 10 additions and 3 deletions

View file

@ -23,9 +23,9 @@ block = "temperature"
interval = 5
format = " $icon $min - $average ~ $max +"
chip = "*-isa-*"
idle = 50
info = 70
warning = 85
idle = <% opt.temperatures.normal %>
info = <% opt.temperatures.medium %>
warning = <% opt.temperatures.high %>
[[block]]
block = "music"

View file

@ -20,4 +20,11 @@ opts.commands = {
file_manager = "thunar",
}
-- Device temperature levels. Used for status bar.
opts.temperatures = {
normal = 40,
medium = 65,
high = 80,
}
return opts