Skip to content

Instantly share code, notes, and snippets.

@mbukatov
Last active February 18, 2020 17:35
Show Gist options
  • Save mbukatov/3494d5503c1440f85429c876a0672121 to your computer and use it in GitHub Desktop.
Save mbukatov/3494d5503c1440f85429c876a0672121 to your computer and use it in GitHub Desktop.
minimal xmonad config with plain volume control
import Graphics.X11.ExtraTypes.XF86
import XMonad
import XMonad.Config
import XMonad.Util.EZConfig
import XMonad.Util.Run (spawnPipe)
myKeys = [
((0, xF86XK_AudioRaiseVolume), spawn "amixer -D pulse sset Master 10%+")
, ((0, xF86XK_AudioLowerVolume), spawn "amixer -D pulse sset Master 10%-")
, ((0, xF86XK_AudioMute), spawn "amixer -D pulse sset Master toggle")
]
main = do xmonad $ additionalKeys defaultConfig myKeys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment