mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Add some keybindings to the Kde config
This commit is contained in:
parent
c66c634cf0
commit
2a2c33b37f
@ -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")
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user