From b9b65ab3afc036703283635f66336fc72a877f36 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 29 Feb 2024 23:47:29 +0200 Subject: Use temperature script --- .config/polybar/config.ini | 73 ++++++++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 32 deletions(-) (limited to '.config/polybar') 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 = "