commit 300c9858eed5c26378c93d3193746ff25fb9bc90 parent ed1aef98df7e4fdb132b3fd67fdaca1856a01f7a Author: Alex Balgavy <a.balgavy@gmail.com> Date: Sat, 5 Oct 2019 14:47:05 -0400 polybar: fix volume display for headphones Former-commit-id: 658ea5ee8a144cba1858f1af7b48646a05f95f5b Diffstat:
M | polybar/config | | | 11 | +++++++---- |
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/polybar/config b/polybar/config @@ -261,12 +261,15 @@ label-connected = %{T3}%local_ip%%{T-} label-disconnected-foreground = #66 [module/volume] -type = internal/pulseaudio -sink = alsa_output.pci-0000_00_1b.0.analog-stereo +type = custom/script +exec = /home/zeroalpha/.scripts/pactl-volume now +exec-if = command -v pactl +scroll-up = /home/zeroalpha/.scripts/pactl-volume down +scroll-down = /home/zeroalpha/.scripts/pactl-volume up use-ui-max = true -interval = 5 +interval = 0 -format-volume = <ramp-volume> <label-volume> +format-volume = <ramp-volume> <label> label-muted = muted label-muted-foreground = #66