diff options
Diffstat (limited to '.xmonad/xmonad.hs')
-rw-r--r-- | .xmonad/xmonad.hs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index c5d4532..8321f25 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs | |||
@@ -47,6 +47,8 @@ import XMonad.Prompt.MySsh | |||
47 | 47 | ||
48 | import Network.HostName | 48 | import Network.HostName |
49 | 49 | ||
50 | import Control.Applicative (<$>) | ||
51 | |||
50 | type KeyMap = Map (ButtonMask, KeySym) (X ()) | 52 | type KeyMap = Map (ButtonMask, KeySym) (X ()) |
51 | 53 | ||
52 | data Host l1 l2 = Host | 54 | data Host l1 l2 = Host |
@@ -69,12 +71,12 @@ defaultHost = Host { hName = "unkown" | |||
69 | --hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a) | 71 | --hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a) |
70 | hostFromName h@("vali") = defaultHost { hName = h | 72 | hostFromName h@("vali") = defaultHost { hName = h |
71 | , hManageHook = composeOne $ catMaybes [ Just manageScratchTerm | 73 | , hManageHook = composeOne $ catMaybes [ Just manageScratchTerm |
72 | , hCoWsp "web" >>= \wsp -> (className =? ".dwb-wrapped" -?> doShift wsp) | 74 | , (\wsp -> className =? ".dwb-wrapped" -?> doShift wsp) <$> hCoWsp "web" |
73 | , hCoWsp "web" >>= \wsp -> (className =? "Chromium" -?> doShift wsp) | 75 | , (\wsp -> className =? "Chromium" -?> doShift wsp) <$> hCoWsp "web" |
74 | ] | 76 | ] |
75 | , hWsp = hWsp | 77 | , hWsp = hWsp |
76 | , hCoWsp = hCoWsp | 78 | , hCoWsp = hCoWsp |
77 | , hLayoutMod = mkMod [ hCoWsp "web" >>= \wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways) | 79 | , hLayoutMod = mkMod [ (\wsp -> onWorkspace wsp $ noBorders Full ||| tabbedLayout tabbedBottomAlways) <$> hCoWsp "web" |
78 | ] | 80 | ] |
79 | , 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)"]) |
80 | ] | 82 | ] |