-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmonad_basic.hs
31 lines (27 loc) · 980 Bytes
/
xmonad_basic.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
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
myManageHook = composeAll
[ className =? "Gimp" --> doFloat
, isFullscreen --> doFullFloat
]
myFocusedBorderColor = "#93E0E3"
main = do
xmproc <- spawnPipe "xmobar"
xmonad $ defaultConfig
{ manageHook = manageDocks <+> myManageHook
<+> manageHook defaultConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, logHook = dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmproc
, ppTitle = xmobarColor "#60B48A" "" . shorten 50
}
, modMask = mod4Mask -- Rebind Mod to the Windows key
, focusedBorderColor = myFocusedBorderColor
} `additionalKeys`
[ ((mod4Mask .|. shiftMask, xK_z), spawn "dm-tool lock")
]