diff --git a/polybar/config b/polybar/config index c307428..c570677 100644 --- a/polybar/config +++ b/polybar/config @@ -50,7 +50,7 @@ font-2 = siji:pixelsize=10;1 modules-left = bspwm i3 modules-center = mpd -modules-right = xbacklight alsa memory cpu wlan eth battery temperature date powermenu +modules-right = xbacklight alsa memory cpu wlan eth battery temperature temperature1 temperature2 date powermenu tray-position = right tray-padding = 2 @@ -204,38 +204,11 @@ format-underline = #0a6cf5 label = %date% %time% -[module/pulseaudio] -type = internal/pulseaudio - -format-volume = -label-volume = VOL %percentage%% -label-volume-foreground = ${root.foreground} - -label-muted = πŸ”‡ muted -label-muted-foreground = #666 - -bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 -bar-volume-gradient = false -bar-volume-indicator = | -bar-volume-indicator-font = 2 -bar-volume-fill = ─ -bar-volume-fill-font = 2 -bar-volume-empty = ─ -bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} - [module/alsa] type = internal/alsa format-volume = -label-volume = VOL +;label-volume = VOL label-volume-foreground = ${root.foreground} format-muted-prefix = "ξˆ‚ " @@ -302,7 +275,7 @@ format-underline = #f50a4d format-warn = format-warn-underline = ${self.format-underline} -label = %temperature-c% +label = CPU %temperature-c% label-warn = %temperature-c% label-warn-foreground = ${colors.secondary} @@ -311,6 +284,99 @@ ramp-1 = ξƒŠ ramp-2 =  ramp-foreground = ${colors.foreground-alt} + +;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 +; tctl +hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp1_input + +[module/temperature1] +type = internal/temperature +thermal-zone = 0 +warn-temperature = 60 + +format =