Intro
When I want to change the music volume on the main sound output use keybinding, it’s fine. However, when I want to change the volume of the music whose sound output is using bluetooth audio, it doesn’t work.
Then I found on forum sites, if I want to change the audio volume for all outputs I can use the command amixer set Master 10%+
.
I try it and it in terminal, and it work. But, when I try for add my audio custom command for keybinding on config file /etc/i3/config
, It doesn’t work. I don’t take any effect from change that.
What I Try
I’ve also done testing by changing:
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
to:
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +20% && $refresh_i3status
Then I restart the configuration file use shortcut Mod+Shift+C
. And It doesn’t make any change, my volume didn’t increase 20% when I pressed volume up.
I try to repeat the my step in up, but with different file configuration that located in $USER/.i3/config
. And it doesn’t make any change too, except that red bar with text You have an error in your i3 config file!
appear on my top screen.
ERROR: Duplicate keybinding in config file:
state mask 0x0 with keysym XF86AudioRaiseVolume, command "exec --no-startup-id amixer set Master 10%- && $refresh_i3status"
ERROR: FYI: You are using i3 version 4.20.1 (2021-11-03)
ERROR: Received ConfigureNotify for unknown window 0x00600000
ERROR: Received ExposeEvent for unknown window 0x00600000
ERROR: Received ConfigureNotify for unknown window 0x00600000
ERROR: Received ConfigureNotify for unknown window 0x0060000b
ERROR: Received ExposeEvent for unknown window 0x0060000b
ERROR: Received ConfigureNotify for unknown window 0x0060000b
The Question
- How to add the custom audio keybinding, and are this is bug?
- How to make my audio keybinding shortcut can effect to all output audio?
- If there an another alternative, then what should I do?
Specification
Kernel version : Linux 5.18.0-1-MANJARO x86_64
Manjaro version: 21.2.6 (Qonos)
i3 version : 4.20.1 (2021-11-03)
Pulseaudio ver : 15.0-4
Your advice is really needed here, thank you