This repository was archived by the owner on May 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxmonad.hs
35 lines (33 loc) · 1.48 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
import XMonad
import TheNext
import XMonad.Util.Run (spawnPipe)
import System.Taffybar.Hooks.PagerHints (pagerHints)
import XMonad.Hooks.ManageDocks (docks)
import XMonad.Hooks.EwmhDesktops (ewmh)
import DBus.Client (connectSession)
main = do
-- | 启动taffybar
xmproc <- spawnPipe "~/.cabal/bin/theNexttaffybar"
xmonad $ docks $ ewmh $ pagerHints defaults
defaults = XConfig
{ XMonad.borderWidth = TheNext.borderWidth
, XMonad.workspaces = TheNext.workspaces
, XMonad.layoutHook = TheNext.layout
, XMonad.terminal = TheNext.terminal
, XMonad.normalBorderColor = TheNext.normalBorderColor
, XMonad.focusedBorderColor = TheNext.focusedBorderColor
, XMonad.modMask = TheNext.defaultModMask
, XMonad.keys = TheNext.keys
, XMonad.logHook = return ()
, XMonad.startupHook = return ()
, XMonad.mouseBindings = TheNext.mouseBindings
, XMonad.manageHook = TheNext.manageHook
, XMonad.handleEventHook = mempty -- TheNext.handleEventHook
, XMonad.focusFollowsMouse = TheNext.focusFollowsMouse
, XMonad.clickJustFocuses = TheNext.clickJustFocuses
, XMonad.clientMask = TheNext.clientMask
, XMonad.rootMask = TheNext.rootMask
, XMonad.handleExtraArgs = \ xs theConf -> case xs of
[] -> return theConf
_ -> fail ("unrecognized flags:" ++ show xs)
}