Last active
December 30, 2015 00:19
-
-
Save nekolinuxblog/7748472 to your computer and use it in GitHub Desktop.
(その12)customKeys関数
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 XMonad | |
import XMonad.Util.CustomKeys | |
main :: IO () | |
main = xmonad defaultConfig { terminal = "urxvt" | |
, modMask = mod4Mask | |
, keys = customKeys delkeys addkeys | |
} | |
where | |
delkeys XConfig {modMask = modkey} = [(modkey .|. shiftMask, xK_slash) | |
,(modkey, xK_question)] | |
addkeys XConfig {modMask = modkey} = [((modkey, xK_q), spawn "killall dzen2; xmonad --recompile && xmonad --restart")] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment