Fix Volume keybinds and manager
nelsonmestevao opened this issue · comments
Do you have problems with this?
# Pulse Audio controls
# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
# bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
or with media control?
Line 87 in 085ec4b
Hello @Wabri! 👋
Yes, I think it is because I have pulseaudio and alsa installed at the same time. Did you also found problems or did you solved already?
I use this but they are the same:
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +2%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -2%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
What is the output of the command pactl info
? Should be a server info, something like this:
Server String: /run/user/1000/pulse/native
Library Protocol Version: 32
Server Protocol Version: 32
Is Local: yes
Client Index: 174
Tile Size: 65472
User Name: wabri
Host Name: Elite
Server Name: pulseaudio
Server Version: 12.2
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Yes, the output is very similiar:
Server String: /run/user/1000/pulse/native
Library Protocol Version: 32
Server Protocol Version: 32
Is Local: yes
Client Index: 21
Tile Size: 65472
User Name: nelson
Host Name: thinkpad
Server Name: pulseaudio
Server Version: 12.2
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: 71c9:f1ef
So this command pactl set-sink-volume 0 50%
should change the volume to 50%.
Yes, it does work. 💪
I have sound working. It's just that it is not in sink with the polybar result and when I plug Bluetooth headsets the volume media keys don't work anymore.