Add pulseaudio custom module
This commit is contained in:
parent
b045e5164a
commit
a45398ca71
@ -161,7 +161,7 @@ font-2 = "xos4 Terminus:size=12;2"
|
|||||||
|
|
||||||
modules-left = title
|
modules-left = title
|
||||||
modules-center = workspaces
|
modules-center = workspaces
|
||||||
modules-right = window_switch keyboard battery alsa checknetwork sysmenu
|
modules-right = keyboard backlight battery pulseaudio-control checknetwork
|
||||||
|
|
||||||
; The separator will be inserted between the output of each module
|
; The separator will be inserted between the output of each module
|
||||||
separator =
|
separator =
|
||||||
|
@ -291,6 +291,22 @@ exec = ~/.config/polybar/scripts/system-nvidia-smi.sh
|
|||||||
interval = 0.5
|
interval = 0.5
|
||||||
format-prefix =
|
format-prefix =
|
||||||
|
|
||||||
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
|
||||||
|
[module/pulseaudio-control]
|
||||||
|
|
||||||
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
label = %output%
|
||||||
|
|
||||||
|
exec = ~/.config/polybar/scripts/pulseaudio-control.bash listen
|
||||||
|
click-right = exec pavucontrol &
|
||||||
|
click-left = ~/.config/polybar/scripts/pulseaudio-control.bash togmute
|
||||||
|
click-middle = ~/.config/polybar/scripts/pulseaudio-control.bash next-sink
|
||||||
|
scroll-up = ~/.config/polybar/scripts/pulseaudio-control.bash up
|
||||||
|
scroll-down = ~/.config/polybar/scripts/pulseaudio-control.bash down
|
||||||
|
label-padding = 2
|
||||||
|
label-foreground = ${color.fg}
|
||||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
;; __________ ______
|
;; __________ ______
|
||||||
;; / ____/ __ \/ ____/
|
;; / ____/ __ \/ ____/
|
||||||
|
Loading…
Reference in New Issue
Block a user