From 21e3c3ab1fdfa670733fc2ecc69beca0eb0a0a47 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Sat, 28 Dec 2019 09:57:48 +0100 Subject: [PATCH] =?UTF-8?q?Polybar=20(barre=20de=20statut):=20Ajout=20d'ex?= =?UTF-8?q?plications=20sur=20la=20temp=C3=A9rature=20+=20adaptation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/polybar/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/polybar/config b/.config/polybar/config index e031124..abbcd88 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -335,7 +335,12 @@ type = internal/temperature thermal-zone = 0 warn-temperature = 60 -hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input +; 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/coretemp.0/hwmon/hwmon3/temp1_input ;format =