polybar: alsa --

This commit is contained in:
Michael Grote 2022-07-21 13:28:45 +02:00
parent 0808e5776b
commit 713418d7e1
3 changed files with 19 additions and 25 deletions

View file

@ -1,23 +0,0 @@
[module/alsa]
type = internal/alsa
format-volume = <bar-volume>
label-volume-foreground = ${root.foreground}
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
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}

View file

@ -0,0 +1,17 @@
[module/pulseaudio]
type = internal/pulseaudio
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
use-ui-max = true
format-volume = <label-volume>
format-volume-prefix = "VOL "
format-volume-prefix-foreground =${colors.foreground-alt}
label-muted = muted
format-muted-prefix = "VOL "
format-muted-prefix-foreground =${colors.foreground-alt}
click-right = pavucontrol

View file

@ -23,7 +23,7 @@ margin-bottom = 5
inherit = bar/defaults inherit = bar/defaults
modules-left = i3 modules-left = i3
modules-center = modules-center =
modules-right = alsa backlight cpu system-cpu-loadavg memory df battery time modules-right = backlight cpu system-cpu-loadavg memory df battery time
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
@ -32,4 +32,4 @@ inherit = bar/defaults
bottom = true bottom = true
modules-left = modules-left =
modules-center = polywins modules-center = polywins
modules-right = modules-right = pulseaudio