In i3 volume control is not handled by fn Right or Left arrow key. I currently have to put the following in a terminal: amixer -D pulse sset Master 5%+(or-) Which i do by way of an alias vup/vdown. Is there a way to globally bind a command say f1/f2 to an amixer command like the above code snippet? It would have to work even if I was currently in a browser or other non terminal window.


I found an answer for fixing the audio problem at How to manage audio with i3?


If you have media keys, then paste this at the end of your i3 config file found at /etc/i3/config and restart i3 with mod+Shift+R

# 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

# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen 
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen 

# Touchpad controls
bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle 

# Media player controls
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.