Skip to content

Instantly share code, notes, and snippets.

@tlwr
Created April 21, 2015 20:45
Show Gist options
  • Save tlwr/0f5380b67972e5f5bf96 to your computer and use it in GitHub Desktop.
Save tlwr/0f5380b67972e5f5bf96 to your computer and use it in GitHub Desktop.
Thinkpad x220 XMonad Volume Buttons
xF86XK_AudioMicMute :: KeySym
xF86XK_AudioMicMute = 269025202
main = do
xmonad $ defaultConfig {} `additionalKeys`
[ ((0, xF86XK_AudioLowerVolume), spawn "amixer set Master 5%-")
, ((0, xF86XK_AudioRaiseVolume), spawn "amixer set Master 5%+")
, ((0, xF86XK_AudioMute), spawn "amixer set Master toggle")
, ((0, xF86XK_AudioMicMute), spawn "amixer set Capture toggle")
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment