Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created June 7, 2016 00:55
Show Gist options
  • Save big-samantha/523fb01f272342c970455224eaa73f94 to your computer and use it in GitHub Desktop.
Save big-samantha/523fb01f272342c970455224eaa73f94 to your computer and use it in GitHub Desktop.

I had a hell of a time getting my volume keys to work in i3 4.12 + Ubuntu 16.04

Mute toggle worked, but the unmute + volume raise/lower would only unmute master, and not "speaker".

The following worked to ensure that raising or lowering the volume also unmutes master AND speaker.

bindsym XF86AudioRaiseVolume exec amixer -q -D pulse -c 1 -q sset Master 2dB+ unmute && amixer -D pulse set Master unmute
bindsym XF86AudioLowerVolume exec amixer -q -D pulse -c 1 -q sset Master 2dB- unmute && amixer -D pulse set Master unmute
bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment