Skip to content

Instantly share code, notes, and snippets.

@jmn
Created May 31, 2018 21:03
Show Gist options
  • Save jmn/5708b3fbecacbe33e3d368070895573b to your computer and use it in GitHub Desktop.
Save jmn/5708b3fbecacbe33e3d368070895573b to your computer and use it in GitHub Desktop.
xmonad audio control buttons snippet
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