summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.xmonad/xmonad.hs8
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
48import Network.HostName 48import Network.HostName
49 49
50import Control.Applicative (<$>)
51
50type KeyMap = Map (ButtonMask, KeySym) (X ()) 52type KeyMap = Map (ButtonMask, KeySym) (X ())
51 53
52data Host l1 l2 = Host 54data 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)
70hostFromName h@("vali") = defaultHost { hName = h 72hostFromName 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 ]