Created
April 21, 2015 20:45
-
-
Save tlwr/0f5380b67972e5f5bf96 to your computer and use it in GitHub Desktop.
Thinkpad x220 XMonad Volume Buttons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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