Add some keybindings to the Kde config

This commit is contained in:
Spencer Janssen 2008-05-07 02:26:58 +00:00
parent c66c634cf0
commit 2a2c33b37f

View File

@ -20,6 +20,8 @@ module XMonad.Config.Kde (
import XMonad import XMonad
import XMonad.Config.Desktop import XMonad.Config.Desktop
import qualified Data.Map as M
-- $usage -- $usage
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@: -- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
-- --
@ -29,4 +31,11 @@ import XMonad.Config.Desktop
-- > main = xmonad kdeConfig -- > main = xmonad kdeConfig
-- --
kdeConfig = desktopConfig { terminal = "konsole" } kdeConfig = desktopConfig
{ terminal = "konsole"
, keys = \c -> kdeKeys c `M.union` keys desktopConfig c }
kdeKeys (XConfig {modMask = modm}) = M.fromList $
[ ((modm, xK_p), spawn "dcop kdesktop default popupExecuteCommand")
, ((modm .|. shiftMask, xK_q), spawn "dcop kdesktop default logout")
]