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] [bar/alone]
inherit = bar/common 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] [bar/primary]
inherit = bar/common 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] [bar/secondary]
inherit = bar/common inherit = bar/common
modules-center = date modules-center = date
modules-right = pulseaudio modules-right = micro speaker
[module/i3] [module/i3]
type = internal/i3 type = internal/i3
@ -138,7 +138,7 @@ animation-low-3 = 
animation-low-3-foreground = ${colors.transparent} animation-low-3-foreground = ${colors.transparent}
animation-low-framerate = 500 animation-low-framerate = 500
[module/pulseaudio] [module/speaker]
type = internal/pulseaudio type = internal/pulseaudio
use-ui-max = false use-ui-max = false
format-volume = <ramp-volume> <label-volume> format-volume = <ramp-volume> <label-volume>
@ -154,6 +154,15 @@ ramp-volume-5 = 
ramp-volume-6 =  ramp-volume-6 = 
ramp-volume-7 =  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+ # All IPC modules require 3.6+
[module/network] [module/network]
type = custom/ipc type = custom/ipc