polybar: add micro volume

This commit is contained in:
Vincent Bernat 2021-09-02 09:37:25 +02:00
parent 8ec9f1a932
commit 067f2389ef

View file

@ -35,16 +35,16 @@ modules-center = date weather
[bar/alone]
inherit = bar/common
modules-right = battery cpu memory brightness bluetooth network disk dunst pulseaudio
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
[bar/primary]
inherit = bar/common
modules-right = battery cpu memory brightness bluetooth network disk dunst pulseaudio
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
[bar/secondary]
inherit = bar/common
modules-center = date
modules-right = pulseaudio
modules-right = micro speaker
[module/i3]
type = internal/i3
@ -138,7 +138,7 @@ animation-low-3 = 
animation-low-3-foreground = ${colors.transparent}
animation-low-framerate = 500
[module/pulseaudio]
[module/speaker]
type = internal/pulseaudio
use-ui-max = false
format-volume = <ramp-volume> <label-volume>
@ -154,6 +154,15 @@ ramp-volume-5 = 
ramp-volume-6 = 
ramp-volume-7 = 
[module/micro]
type = internal/pulseaudio
use-ui-max = false
source = "@DEFAULT_SOURCE@"
format-volume = <label-volume>
format-muted = <label-muted>
label-volume =  %percentage: 2%%
label-muted =  %percentage: 2%%
# All IPC modules require 3.6+
[module/network]
type = custom/ipc