Created
October 12, 2012 16:53
-
-
Save funrep/3880215 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
xmproc <- spawnPipe "/usr/bin/xmobar /home/klr/.xmobarrc" | |
xmonad $ defaultConfig | |
{ terminal = "urxvt" | |
, modMask = mod1Mask | |
, borderWidth = 2 | |
, manageHook = manageDocks <+> manageHook defaultConfig | |
, layoutHook = avoidStruts $ layoutHook defaultConfig | |
, logHook = dynamicLogWithPP xmobarPP | |
{ ppOutput = hPutStrLn xmproc | |
, ppTitle = xmobarColor "green" "" .shorten 50 | |
} | |
} `additionalKeys` | |
[ ((mod4Mask .|. shiftMask, xK_w), spawn "chromium") | |
, ((mod4Mask .|. shiftMask, xK_e), spawn "gimp") | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment