Created
March 7, 2015 05:38
-
-
Save drautb/ecb8bf3ef3f77f158dcb to your computer and use it in GitHub Desktop.
XMonad config
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 | |
myManageHook = composeAll | |
[ className =? "Gimp" --> doFloat | |
, className =? "Vncviewer" --> doFloat | |
] | |
main = do | |
xmproc <- spawnPipe "/path/to/xmobarbinary /home/jgoerzen/.xmobarrc" | |
xmonad $ defaultConfig | |
{ manageHook = manageDocks <+> myManageHook -- make sure to include myManageHook definition from above | |
<+> manageHook defaultConfig | |
, layoutHook = avoidStruts $ layoutHook defaultConfig | |
, logHook = dynamicLogWithPP xmobarPP | |
{ ppOutput = hPutStrLn xmproc | |
, ppTitle = xmobarColor "green" "" . shorten 50 | |
} | |
, modMask = mod4Mask -- Rebind Mod to the Windows key | |
} `additionalKeys` | |
[ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock") | |
, ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s") | |
, ((0, xK_Print), spawn "scrot") | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wiki.haskell.org/Xmonad/Config_archive/John_Goerzen%27s_Configuration