Add pulseaudio-control to polybar
* from: https://github.com/marioortizmanero/polybar-pulseaudio-control
This commit is contained in:
parent
f1f06cb48b
commit
e88a5609df
|
@ -61,7 +61,7 @@ font-5 = Font Awesome 5 Brands:pixelsize=12;2
|
|||
|
||||
modules-left = bspwm
|
||||
modules-center = xwindow pacman-updates
|
||||
modules-right = filesystem pulseaudio memory cpu eth date powermenu
|
||||
modules-right = filesystem pulseaudio-control memory cpu eth date powermenu
|
||||
|
||||
separator = |
|
||||
tray-position = none
|
||||
|
@ -106,6 +106,24 @@ format = <label>
|
|||
exec = python /home/ermanno/.config/scripts/spotify_status.py -f '{artist}: {song}'
|
||||
format-underline = #1db954
|
||||
|
||||
[module/pulseaudio-control]
|
||||
type = custom/script
|
||||
tail = true
|
||||
format-underline = ${colors.cyan}
|
||||
label-padding = 2
|
||||
label-foreground = ${colors.foreground}
|
||||
|
||||
# Icons mixed from Font Awesome 5 and Material Icons
|
||||
# You can copy-paste your options for each possible action, which is more
|
||||
# trouble-free but repetitive, or apply only the relevant ones (for example
|
||||
# --sink-blacklist is only needed for next-sink).
|
||||
exec = pulseaudio-control --icons-volume " , " --icon-muted " " --sink-nicknames-from "device.description" --sink-nickname "alsa_output.pci-0000_00_1b.0.analog-stereo: Speakers" --sink-nickname "alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo: Headphones" listen
|
||||
click-right = exec pavucontrol &
|
||||
click-left = pulseaudio-control togmute
|
||||
click-middle = pulseaudio-control --sink-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2" next-sink
|
||||
scroll-up = pulseaudio-control --volume-max 130 up
|
||||
scroll-down = pulseaudio-control --volume-max 130 down
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
|
Loading…
Reference in New Issue