summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:20:28 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:20:28 +0200
commit2eac61501ed8f1a5fe5d94edfafd35ba5043b898 (patch)
treeeaefe44bd4e54abf0884668df145c988e36cc042
parent7ee7f7ba3b55d89b2cbcf0fedf3bb5c25de7ae2b (diff)
downloaddotfiles-2eac61501ed8f1a5fe5d94edfafd35ba5043b898.tar
dotfiles-2eac61501ed8f1a5fe5d94edfafd35ba5043b898.tar.gz
dotfiles-2eac61501ed8f1a5fe5d94edfafd35ba5043b898.tar.bz2
dotfiles-2eac61501ed8f1a5fe5d94edfafd35ba5043b898.tar.xz
dotfiles-2eac61501ed8f1a5fe5d94edfafd35ba5043b898.zip
code cleanup
-rw-r--r--.xmonad/xmonad.hs33
1 files changed, 17 insertions, 16 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs
index 7245ad3..c5d4532 100644
--- a/.xmonad/xmonad.hs
+++ b/.xmonad/xmonad.hs
@@ -68,10 +68,10 @@ defaultHost = Host { hName = "unkown"
68 68
69--hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a) 69--hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a)
70hostFromName h@("vali") = defaultHost { hName = h 70hostFromName h@("vali") = defaultHost { hName = h
71 , hManageHook = composeOne [ manageScratchTerm 71 , hManageHook = composeOne $ catMaybes [ Just manageScratchTerm
72 , className =? ".dwb-wrapped" -?> doShift (wsp 2) 72 , hCoWsp "web" >>= \wsp -> (className =? ".dwb-wrapped" -?> doShift wsp)
73 , className =? "Chromium" -?> doShift (wsp 2) 73 , hCoWsp "web" >>= \wsp -> (className =? "Chromium" -?> doShift wsp)
74 ] 74 ]
75 , hWsp = hWsp 75 , hWsp = hWsp
76 , hCoWsp = hCoWsp 76 , hCoWsp = hCoWsp
77 , hLayoutMod = mkMod [ hCoWsp "web" >>= \wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways) 77 , hLayoutMod = mkMod [ hCoWsp "web" >>= \wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways)
@@ -104,6 +104,19 @@ spawnBindings conf (k, cmds) = zipWith (\m cmd -> ((modm .|. mod1Mask .|. m, k),
104 104
105manageScratchTerm = resource =? "scratchpad" -?> doRectFloat $ RationalRect (1 % 16) (1 % 16) (7 % 8) (7 % 8) 105manageScratchTerm = resource =? "scratchpad" -?> doRectFloat $ RationalRect (1 % 16) (1 % 16) (7 % 8) (7 % 8)
106 106
107tabbedLayout t = renamed [Replace "Tabbed"] $ reflectHoriz $ t CustomShrink $ tabbedTheme
108tabbedTheme = defaultTheme { activeColor = "black"
109 , inactiveColor = "black"
110 , urgentColor = "black"
111 , activeBorderColor = "white"
112 , inactiveBorderColor = "#202020"
113 , urgentBorderColor = "#bb0000"
114 , activeTextColor = "white"
115 , inactiveTextColor = "white"
116 , urgentTextColor = "white"
117 , decoHeight = 16
118 }
119
107main = do 120main = do
108 xmobarProc <- spawnPipe "xmobar" 121 xmobarProc <- spawnPipe "xmobar"
109 host <- getHostName >>= return . hostFromName 122 host <- getHostName >>= return . hostFromName
@@ -121,18 +134,6 @@ main = do
121 } 134 }
122 layout' = hLayoutMod host $ defaultLayouts 135 layout' = hLayoutMod host $ defaultLayouts
123 defaultLayouts = spiralWithDir East CW (1 % 2) ||| tabbedLayout tabbedBottom ||| noBorders Full ||| simplestFloat 136 defaultLayouts = spiralWithDir East CW (1 % 2) ||| tabbedLayout tabbedBottom ||| noBorders Full ||| simplestFloat
124 tabbedLayout t = renamed [Replace "Tabbed"] $ reflectHoriz $ t CustomShrink $ tabbedTheme
125 tabbedTheme = defaultTheme { activeColor = "black"
126 , inactiveColor = "black"
127 , urgentColor = "black"
128 , activeBorderColor = "white"
129 , inactiveBorderColor = "#202020"
130 , urgentBorderColor = "#bb0000"
131 , activeTextColor = "white"
132 , inactiveTextColor = "white"
133 , urgentTextColor = "white"
134 , decoHeight = 16
135 }
136 xmobarPP' = xmobarPP { ppOutput = hPutStrLn xmobarProc 137 xmobarPP' = xmobarPP { ppOutput = hPutStrLn xmobarProc
137 , ppTitle = shorten 50 138 , ppTitle = shorten 50
138 , ppSort = (liftM2 (.)) getSortByIndex $ return scratchpadFilterOutWorkspace 139 , ppSort = (liftM2 (.)) getSortByIndex $ return scratchpadFilterOutWorkspace