Add pulseaudio-control
This commit is contained in:
parent
613d216572
commit
2f75a8d993
2 changed files with 11 additions and 9 deletions
|
@ -63,9 +63,10 @@ in {
|
||||||
os-prober
|
os-prober
|
||||||
pavucontrol
|
pavucontrol
|
||||||
picom
|
picom
|
||||||
pm2
|
|
||||||
plexamp
|
plexamp
|
||||||
|
pm2
|
||||||
polybar
|
polybar
|
||||||
|
polybar-pulseaudio-control
|
||||||
ranger
|
ranger
|
||||||
rofi
|
rofi
|
||||||
rofi-emoji
|
rofi-emoji
|
||||||
|
|
|
@ -53,7 +53,7 @@ font-1 = Font Awesome 6 Free:style=Regular;2
|
||||||
font-2 = Font Awesome 6 Free:style=Solid;2
|
font-2 = Font Awesome 6 Free:style=Solid;2
|
||||||
|
|
||||||
modules-left = xworkspaces xwindow
|
modules-left = xworkspaces xwindow
|
||||||
modules-right = filesystem audiooutput pulseaudio xkeyboard memory cpu battery date
|
modules-right = filesystem pulseaudio-control-output xkeyboard memory cpu battery date
|
||||||
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
|
@ -114,14 +114,15 @@ label-volume = %percentage%%
|
||||||
label-muted = muted
|
label-muted = muted
|
||||||
label-muted-foreground = ${colors.disabled}
|
label-muted-foreground = ${colors.disabled}
|
||||||
|
|
||||||
[module/audiooutput]
|
[module/pulseaudio-control-output]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = cat ~/.cache/scripts/get-sink-name.txt
|
exec = pulseaudio-control --format 'VOL $VOL_LEVEL%' listen
|
||||||
interval = 1
|
|
||||||
format = <label>
|
click-right = exec pavucontrol &
|
||||||
format-prefix = "OUT "
|
click-left = pulseaudio-control togmute
|
||||||
format-prefix-foreground = ${colors.primary}
|
click-middle = pulseaudio-control next-node
|
||||||
label = %output%
|
scroll-up = pulseaudio-control --volume-max 100 up
|
||||||
|
scroll-down = pulseaudio-control --volume-max 100 down
|
||||||
|
|
||||||
[module/xkeyboard]
|
[module/xkeyboard]
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
|
|
Loading…
Reference in a new issue