aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--XMonad/Config/Desktop.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/XMonad/Config/Desktop.hs b/XMonad/Config/Desktop.hs
index d004dbe..8e9e949 100644
--- a/XMonad/Config/Desktop.hs
+++ b/XMonad/Config/Desktop.hs
@@ -23,11 +23,17 @@ import XMonad.Config (defaultConfig)
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.EwmhDesktops
+import qualified Data.Map as M
+
desktopConfig = defaultConfig
{ logHook = ewmhDesktopsLogHook
, layoutHook = desktopLayoutModifiers $ layoutHook defaultConfig
, manageHook = manageHook defaultConfig <+> manageDocks
+ , keys = \c -> desktopKeys c `M.union` keys defaultConfig c
}
+desktopKeys (XConfig {modMask = modm}) = M.fromList $
+ [ ((modm, xK_b), sendMessage ToggleStruts) ]
+
desktopLayoutModifiers = avoidStruts . ewmhDesktopsLayout