aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2020-02-03 18:56:05 -0700
committerJosh Rahm <rahm@google.com>2020-02-03 18:56:05 -0700
commit04489c6c77e9c80e5b3332b81cea149dad1c7d88 (patch)
tree55b661576f0bba5daabce53f1620861f2f8eae90 /src/Main.hs
parente3b47c680b20aab1e703ce0525364244422c27e8 (diff)
downloadrde-04489c6c77e9c80e5b3332b81cea149dad1c7d88.tar.gz
rde-04489c6c77e9c80e5b3332b81cea149dad1c7d88.tar.bz2
rde-04489c6c77e9c80e5b3332b81cea149dad1c7d88.zip
Add ability to show layout format!
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 98fb384..77a53a0 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -18,6 +18,7 @@ main = do
-- Execute some commands.
homeDir <- getHomeDirectory
let fp = homeDir </> ".xmonad" </> "startup"
+ let theLayout = myLayout
config <-
applyKeys $ def
@@ -27,8 +28,10 @@ main = do
, keys = \config -> mempty
, focusedBorderColor = "#FFFFFF"
, normalBorderColor = "#000000"
- , layoutHook = spacingRaw True (Border 5 5 5 5) True (Border 5 5 5 5) True $
- myLayout
+ , layoutHook =
+ spacingRaw True (Border 5 5 5 5) True (Border 5 5 5 5) True $
+ InterceptLayout $
+ myLayout
, startupHook = do
spawn fp
, manageHook = composeAll [
@@ -39,6 +42,7 @@ main = do
, className =? "gnubby_ssh_prompt" --> doFloat
]
}
+
let toggleStructsKey XConfig {XMonad.modMask = modMask} = (modMask, xK_b)
xmonad =<<
@@ -54,6 +58,7 @@ main = do
(printf "<fn=1>%s</fn>" :: String -> String)
, ppSep = xmobarColor "#404040" "" " ──── "
+ , ppExtras = [showLayout]
}
toggleStructsKey
config { modMask = mod4Mask }