From f3848fb371184a792ec929f74c7a231d04ab5bd1 Mon Sep 17 00:00:00 2001 From: xvzc Date: Fri, 26 Jul 2024 21:25:29 +0900 Subject: [PATCH] update --- dot_config/bspwm/polybar.ini | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/dot_config/bspwm/polybar.ini b/dot_config/bspwm/polybar.ini index 15e9cd5..70a9b1a 100644 --- a/dot_config/bspwm/polybar.ini +++ b/dot_config/bspwm/polybar.ini @@ -78,7 +78,7 @@ inherit = bar/root width = 30% offset-x = 0% -modules-left = pulseaudio temperature storage time +modules-left = pulseaudio cpu-temp storage time modules-center = "" modules-right = "" @@ -200,26 +200,14 @@ interface-type = wired click-left = gnome-control-center network ; ----------------------------------------------------------------------------- -[module/temperature] -type = internal/temperature - -interval = 1 -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 +[module/cpu-temp] +type = custom/script +exec = ~/.config/bspwm/scripts/cpu-temp.sh +interval = 0.7 label-foreground=${colors.label} format-foreground=${colors.primary} -; Base temperature for where to start the ramp (in degrees celsius) -base-temperature = 0 -; Threshold temperature to display warning label (in degrees celsius) -warn-temperature = 80 format = 