Add pulse-volume polybar module
This commit is contained in:
parent
044033eb2b
commit
dc1116f0ac
@ -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 = keyboard backlight battery pulseaudio-control checknetwork
|
modules-right = keyboard backlight battery pulseaudio-control pulse-volume 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 =
|
||||||
|
@ -305,6 +305,18 @@ click-left = ~/.config/polybar/scripts/pulseaudio-control.bash togmute
|
|||||||
click-middle = ~/.config/polybar/scripts/pulseaudio-control.bash next-sink
|
click-middle = ~/.config/polybar/scripts/pulseaudio-control.bash next-sink
|
||||||
scroll-up = ~/.config/polybar/scripts/pulseaudio-control.bash up
|
scroll-up = ~/.config/polybar/scripts/pulseaudio-control.bash up
|
||||||
scroll-down = ~/.config/polybar/scripts/pulseaudio-control.bash down
|
scroll-down = ~/.config/polybar/scripts/pulseaudio-control.bash down
|
||||||
|
label-padding = 2
|
||||||
|
label-foreground = ${color.fg}
|
||||||
|
|
||||||
|
[module/pulse-volume]
|
||||||
|
|
||||||
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
label = %output%
|
||||||
|
|
||||||
|
exec = ~/.config/polybar/scripts/volume.sh feed
|
||||||
|
click-left = ~/.config/polybar/scripts/volume.sh change_mode
|
||||||
|
|
||||||
label-padding = 2
|
label-padding = 2
|
||||||
label-foreground = ${color.fg}
|
label-foreground = ${color.fg}
|
||||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
Loading…
Reference in New Issue
Block a user