Rework polybar temperature module

This commit is contained in:
Tanguy Herbron 2021-04-26 17:24:57 +02:00
parent 6a94daddc0
commit 05c0540b87

View File

@ -957,7 +957,7 @@ type = internal/temperature
; Seconds to sleep between updates
; Default: 1
interval = 0.5
interval = 1
; Thermal zone to use
; To list all the zone types, run
@ -984,11 +984,17 @@ units = true
; <label> (default)
; <ramp>
format = <label>
format-prefix = "﨎 "
format-prefix-foreground = ${color.magenta}
format-background = ${color.black}
; Available tags:
; <label-warn> (default)
; <ramp>
format-warn = <label-warn>
format-warn-prefix = "﨎 "
format-warn-foreground = ${color.red}
format-warn-background = ${color.black}
; Available tokens:
; %temperature% (deprecated)
@ -1001,7 +1007,7 @@ label = %temperature-c%
; %temperature-c% (default, temperature in °C)
; %temperature-f% (temperature in °F)
label-warn = "%temperature-c%"
label-warn-foreground = #f00
label-warn-foreground = ${color.red}
; Requires the <ramp> tag
; The icon selection will range from 0 to `warn-temperature`