diff options
Diffstat (limited to '.xmonad')
-rw-r--r-- | .xmonad/xmonad.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 2877be1..fadc49a 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 = mkMod [ (\wsp -> onWorkspace wsp $ noBorders Full ||| tabbedLayout tabbedBottomAlways) <$> hCoWsp "web" | 79 | , hLayoutMod = mkMod [ (\wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways)) <$> hCoWsp "web" |
80 | ] | 80 | ] |
81 | , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"]) | 81 | , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"]) |
82 | ] | 82 | ] |
@@ -86,6 +86,7 @@ hostFromName h@("vali") = defaultHost { hName = h | |||
86 | ] | 86 | ] |
87 | hWsp = wspFromMap workspaceNames | 87 | hWsp = wspFromMap workspaceNames |
88 | hCoWsp = coWspFromMap workspaceNames | 88 | hCoWsp = coWspFromMap workspaceNames |
89 | mkMod = foldl (.) id . catMaybes | ||
89 | hostFromName _ = defaultHost | 90 | hostFromName _ = defaultHost |
90 | 91 | ||
91 | wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of | 92 | wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of |
@@ -97,8 +98,6 @@ coWspFromMap workspaceNames = \str -> case filter ((== str) . snd) $ Map.toList | |||
97 | [(i, _)] -> Just $ wspFromMap workspaceNames i | 98 | [(i, _)] -> Just $ wspFromMap workspaceNames i |
98 | _ -> Nothing | 99 | _ -> Nothing |
99 | 100 | ||
100 | mkMod = foldl (.) id . catMaybes | ||
101 | |||
102 | spawnModifiers = [0, controlMask, shiftMask .|. controlMask] | 101 | spawnModifiers = [0, controlMask, shiftMask .|. controlMask] |
103 | spawnBindings conf (k, cmds) = zipWith (\m cmd -> ((modm .|. mod1Mask .|. m, k), spawn cmd)) spawnModifiers cmds | 102 | spawnBindings conf (k, cmds) = zipWith (\m cmd -> ((modm .|. mod1Mask .|. m, k), spawn cmd)) spawnModifiers cmds |
104 | where | 103 | where |