summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:28:03 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:28:03 +0200
commitd8a45dd9e240ae16c42db0b79c50a8e63c0daaff (patch)
treef2507d17357d68b8a3c496aa15403e1ff8d37e2e
parent47a4a723f34f54a180e8e0e0e775e6262ef752b0 (diff)
downloaddotfiles-d8a45dd9e240ae16c42db0b79c50a8e63c0daaff.tar
dotfiles-d8a45dd9e240ae16c42db0b79c50a8e63c0daaff.tar.gz
dotfiles-d8a45dd9e240ae16c42db0b79c50a8e63c0daaff.tar.bz2
dotfiles-d8a45dd9e240ae16c42db0b79c50a8e63c0daaff.tar.xz
dotfiles-d8a45dd9e240ae16c42db0b79c50a8e63c0daaff.zip
more type wrangling
-rw-r--r--.xmonad/xmonad.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs
index fadc49a..8813651 100644
--- a/.xmonad/xmonad.hs
+++ b/.xmonad/xmonad.hs
@@ -76,8 +76,7 @@ hostFromName h@("vali") = defaultHost { hName = h
76 ] 76 ]
77 , hWsp = hWsp 77 , hWsp = hWsp
78 , hCoWsp = hCoWsp 78 , hCoWsp = hCoWsp
79 , hLayoutMod = mkMod [ (\wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways)) <$> hCoWsp "web" 79 , hLayoutMod = maybe' applyWeb
80 ]
81 , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"]) 80 , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"])
82 ] 81 ]
83 } 82 }
@@ -86,7 +85,8 @@ hostFromName h@("vali") = defaultHost { hName = h
86 ] 85 ]
87 hWsp = wspFromMap workspaceNames 86 hWsp = wspFromMap workspaceNames
88 hCoWsp = coWspFromMap workspaceNames 87 hCoWsp = coWspFromMap workspaceNames
89 mkMod = foldl (.) id . catMaybes 88 maybe' = fromMaybe id
89 applyWeb = (\wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways)) <$> hCoWsp "web"
90hostFromName _ = defaultHost 90hostFromName _ = defaultHost
91 91
92wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of 92wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of