Skip to content

Instantly share code, notes, and snippets.

@nekolinuxblog
Last active December 30, 2015 00:19
Show Gist options
  • Save nekolinuxblog/7748472 to your computer and use it in GitHub Desktop.
Save nekolinuxblog/7748472 to your computer and use it in GitHub Desktop.
(その12)customKeys関数
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