Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzc committed Jul 26, 2024
1 parent 381103f commit f3848fb
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions dot_config/bspwm/polybar.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""

Expand Down Expand Up @@ -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 =  <label>
label = %temperature-c%
label-font = 3

; -----------------------------------------------------------------------------
Expand Down

0 comments on commit f3848fb

Please sign in to comment.