summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:29:24 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:29:24 +0200
commit99bbf037e6966dd17c5dd1026b1dc5d1cedba13c (patch)
treeaf0aec69b274a002df7df89d8ec91e1cd384aec0
parentd8a45dd9e240ae16c42db0b79c50a8e63c0daaff (diff)
downloaddotfiles-99bbf037e6966dd17c5dd1026b1dc5d1cedba13c.tar
dotfiles-99bbf037e6966dd17c5dd1026b1dc5d1cedba13c.tar.gz
dotfiles-99bbf037e6966dd17c5dd1026b1dc5d1cedba13c.tar.bz2
dotfiles-99bbf037e6966dd17c5dd1026b1dc5d1cedba13c.tar.xz
dotfiles-99bbf037e6966dd17c5dd1026b1dc5d1cedba13c.zip
workspace numbers need to be statically known because layouts are type-level
-rw-r--r--.xmonad/xmonad.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs
index 8813651..e1ed49b 100644
--- a/.xmonad/xmonad.hs
+++ b/.xmonad/xmonad.hs
@@ -76,7 +76,7 @@ hostFromName h@("vali") = defaultHost { hName = h
76 ] 76 ]
77 , hWsp = hWsp 77 , hWsp = hWsp
78 , hCoWsp = hCoWsp 78 , hCoWsp = hCoWsp
79 , hLayoutMod = maybe' applyWeb 79 , hLayoutMod = onWorkspace (hWsp 1) (noBorders Full ||| tabbedLayout tabbedBottomAlways)
80 , 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)"])
81 ] 81 ]
82 } 82 }
@@ -85,8 +85,6 @@ hostFromName h@("vali") = defaultHost { hName = h
85 ] 85 ]
86 hWsp = wspFromMap workspaceNames 86 hWsp = wspFromMap workspaceNames
87 hCoWsp = coWspFromMap workspaceNames 87 hCoWsp = coWspFromMap workspaceNames
88 maybe' = fromMaybe id
89 applyWeb = (\wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways)) <$> hCoWsp "web"
90hostFromName _ = defaultHost 88hostFromName _ = defaultHost
91 89
92wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of 90wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of