-
Notifications
You must be signed in to change notification settings - Fork 1
/
xmonad.hs
56 lines (50 loc) · 1.72 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
54
55
56
-- -*- haskell -*-
import qualified XMonad.StackSet as W
import Monad (liftM)
import XMonad
import XMonad.Actions.CycleWS
import XMonad.Actions.UpdatePointer
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.UrgencyHook
import XMonad.Util.NamedScratchpad
import XMonad.Util.Run
-- lib
import Bar
import Hook
import Key
import Layout
import MyManageHook ( manageFullScreenHook )
import Scratchpad
myBorderWidth = 1
myFocusedBorderColor = "black"
myModMask = mod4Mask
myNormalBorderColor = "black"
myNumlockMask = mod2Mask
myTerminal = "urxvtc -e tmux"
myWorkspaces = ["web", "im", "work", "view"]
-- | Whether focus follows the mouse pointer.
myFocusFollowsMouse = False
-- Startup hook
myStartupHook = do
spawn "/home/ask/.bin/autostart.sh"
-----------------------------------------------------------------------
main = do
dzen <- spawnPipe dzenStatusBar
xmonad $ withUrgencyHook NoUrgencyHook $ defaultConfig {
terminal = myTerminal
, focusFollowsMouse = myFocusFollowsMouse
, borderWidth = myBorderWidth
, modMask = myModMask
, workspaces = myWorkspaces
, normalBorderColor = myNormalBorderColor
, focusedBorderColor = myFocusedBorderColor
, handleEventHook = ewmhDesktopsEventHook <+> manageFullScreenHook
, keys = keybinding
, mouseBindings = myMouseBindings
, layoutHook = layouts
, manageHook = manageHooks <+> (namedScratchpadManageHook scratchpads)
, logHook = ewmhDesktopsLogHook >> dynamicLogWithPP (logging dzen) >> updatePointer Nearest
, startupHook = myStartupHook
}