diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-02-29 23:47:29 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-02-29 23:47:29 +0200 |
| commit | b9b65ab3afc036703283635f66336fc72a877f36 (patch) | |
| tree | 68f6b5233b1411cf31424238714d589895bbf602 /.config/polybar/config.ini | |
| parent | 235530293ebaff2eec03eb22c4f25414cf28b285 (diff) | |
| download | dotfiles-b9b65ab3afc036703283635f66336fc72a877f36.tar.gz dotfiles-b9b65ab3afc036703283635f66336fc72a877f36.zip | |
Use temperature script
Diffstat (limited to '.config/polybar/config.ini')
| -rw-r--r-- | .config/polybar/config.ini | 73 |
1 files changed, 41 insertions, 32 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 9c5ddfa..9de3d64 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -344,39 +344,48 @@ label="%percentage%%" label-foreground=${colors.foreground} label-font=2 +;[module/temperature] +;type=internal/temperature +;; Seconds to sleep between updates +;; Default: 1 +;interval=10 +;; Thermal zone to use +;; To list all the zone types, run +;; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done +;; Default: 0 +;thermal-zone=0 +;; Full path of temperature sysfs path +;; Use `sensors` to find preferred temperature source, then run +;; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done +;; to find path to desired file +;; Default reverts to thermal zone setting +;;hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon2/temp1_input +;hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon1/temp1_input +;; Base temperature for where to start the ramp (in degrees celsius) +;; Default: 0 +;base-temperature=20 +;warn-temperature=60 +;; Threshold temperature to display warning label (in degrees celsius) +;; Default: 80 +;format-prefix=" " +;format-warn-prefix=" " +;format-warn-foreground=${colors.red} +;format-foreground=${colors.foreground} +;format-font=4 +;format-warn-font=4 +;label-warn-font=2 +;label-foreground=${colors.foreground} +;format = "<label>" +;label-font=2 + [module/temperature] -type=internal/temperature -; Seconds to sleep between updates -; Default: 1 -interval=10 -; Thermal zone to use -; To list all the zone types, run -; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done -; Default: 0 -thermal-zone=0 -; Full path of temperature sysfs path -; Use `sensors` to find preferred temperature source, then run -; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done -; to find path to desired file -; Default reverts to thermal zone setting -;hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon2/temp1_input -hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon1/temp1_input -; Base temperature for where to start the ramp (in degrees celsius) -; Default: 0 -base-temperature=20 -warn-temperature=60 -; Threshold temperature to display warning label (in degrees celsius) -; Default: 80 -format-prefix=" " -format-warn-prefix=" " -format-warn-foreground=${colors.red} -format-foreground=${colors.foreground} -format-font=4 -format-warn-font=4 -label-warn-font=2 -label-foreground=${colors.foreground} -format = "<label>" -label-font=2 +type = custom/script +interval = 5 +format = <label> +format-prefix = " " +format-prefix-foreground = ${colors.foreground} +exec = ~/.config/polybar/scripts/temperature.sh + [module/battery] type = custom/script |
