Last active
August 29, 2015 14:04
-
-
Save pcarrier/e689eb31f3b4f0a2950e to your computer and use it in GitHub Desktop.
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 qualified Data.Map as M | |
import XMonad | |
import qualified XMonad.StackSet as W | |
import XMonad.Actions.DynamicWorkspaces | |
import XMonad.Config.Kde | |
import XMonad.Hooks.SetWMName | |
import XMonad.Prompt | |
main = xmonad $ kde4Config | |
{ modMask = mod4Mask | |
, keys = customKeys <+> keys kde4Config | |
, terminal = "urxvt" | |
, startupHook = startupHook kde4Config >> setWMName "LG3D" | |
, workspaces = ["1", "2", "3"] | |
} | |
where | |
customKeys (XConfig {modMask = modm}) = M.fromList $ | |
[ | |
((modm, xK_backslash), selectWorkspace defaultXPConfig) | |
, ((modm, xK_apostrophe), withWorkspace defaultXPConfig (windows . W.shift)) | |
, ((modm .|. shiftMask, xK_apostrophe), | |
withWorkspace defaultXPConfig (\ws -> windows $ W.greedyView ws . W.shift ws)) | |
, ((modm, xK_BackSpace), renameWorkspace defaultXPConfig) | |
, ((modm .|. shiftMask, xK_BackSpace), removeWorkspace) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment