Last active
February 18, 2020 17:35
-
-
Save mbukatov/3494d5503c1440f85429c876a0672121 to your computer and use it in GitHub Desktop.
minimal xmonad config with plain volume control
This file contains hidden or 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 | |
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