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