-
Notifications
You must be signed in to change notification settings - Fork 1
/
xmonad.hs
53 lines (47 loc) · 1.45 KB
/
xmonad.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{-
Author: joseph.glanville@orionvm.com.au
Version: XMonad 0.9.2
Requires: XMonad Contrib and XMobar
-}
import System.IO
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import XMonad.Layout.Named
import XMonad.Layout.PerWorkspace
import XMonad.Layout.NoBorders
myManageHook = composeAll
[ className =? "Gimp" --> doFloat
, className =? "Vncviewer" --> doFloat
]
myWorkspaces = ["term", "web", "code", "irc", "media", "music", "else"]
myLayoutHook = onWorkspace "media" myFullscreen $
onWorkspace "web" myBorderless $
onWorkspace "music" myFullscreen $
myLayout where
myFullscreen = noBorders (Full)
myBorderless = noBorders (avoidStruts $ layoutHook defaultConfig)
myLayout = avoidStruts $ layoutHook defaultConfig
main = do
xmproc <- spawnPipe "/usr/bin/xmobar ${HOME}/.xmobarrc"
xmonad $ defaultConfig
{
manageHook = manageDocks <+> myManageHook <+> manageHook defaultConfig
, layoutHook = myLayoutHook
, workspaces = myWorkspaces
, normalBorderColor = "#000000"
, focusedBorderColor = "#597BC5"
, terminal = "terminator"
, logHook = dynamicLogWithPP $ xmobarPP
{ ppOutput = hPutStrLn xmproc
, ppCurrent = xmobarColor "#D8AD4C" "" . wrap "[" "]"
, ppTitle = xmobarColor "#99ad6a" ""
}
, modMask = mod4Mask
}
`additionalKeys`
[
((mod4Mask, xK_p), spawn "dmenu_run")
]