-
Notifications
You must be signed in to change notification settings - Fork 2
/
xmonad
29 lines (27 loc) · 986 Bytes
/
xmonad
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
# -*- mode: conf; -*-
#+DEST=$HOME/.xmonad/
#+FNAME=.xmonad
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
main = do
xmproc0 <- spawnPipe "xmobar -x 0 $HOME/.xmonad/mainxmobarrc"
xmproc1 <- spawnPipe "xmobar -x 1 $HOME/.xmonad/auxxmobarrc"
xmonad $ defaultConfig
{ terminal = "urxvtc"
, modMask = mod4Mask -- rebind to windows key
, manageHook = manageDocks <+> manageHook defaultConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, handleEventHook = docksEventHook <+> handleEventHook defaultConfig
, logHook = dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmproc0
, ppTitle = xmobarColor "green" "" . shorten 50
}
>> dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmproc1
, ppTitle = xmobarColor "green" "" . shorten 50
}
}