Created
May 31, 2018 21:03
-
-
Save jmn/5708b3fbecacbe33e3d368070895573b to your computer and use it in GitHub Desktop.
xmonad audio control buttons snippet
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
import Graphics.X11.ExtraTypes.XF86 | |
-- Audio buttons | |
`additionalKeys` | |
[ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock"), | |
((0 , xF86XK_AudioLowerVolume), spawn "amixer -q sset Master 2%-"), | |
((0 , xF86XK_AudioRaiseVolume), spawn "amixer -q sset Master 2%+"), | |
((0 , xF86XK_AudioMute), spawn "amixer set Master toggle") | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment