xmonad.hs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import XMonad
  2. import XMonad.Hooks.DynamicLog
  3. import XMonad.Layout.Spacing
  4. import XMonad.Hooks.ManageDocks
  5. import XMonad.Util.Run(spawnPipe)
  6. import XMonad.Util.EZConfig(additionalKeys)
  7. import System.IO
  8. -- main = xmonad defaultConfig
  9. -- { modMask = mod4Mask
  10. -- , terminal = "st"
  11. -- , borderWidth = 6
  12. -- , normalBorderColor = "#6666ea"
  13. -- , focusedBorderColor = "#5ab738"
  14. -- }
  15. main = do
  16. xmproc <- spawnPipe "xmobar"
  17. xmonad $ docks defaultConfig
  18. { layoutHook = spacingRaw False (Border 25 10 10 10) True (Border 10 10 10 10) True $ layoutHook defaultConfig
  19. , logHook = dynamicLogWithPP xmobarPP
  20. { ppOutput = hPutStrLn xmproc
  21. , ppTitle = xmobarColor "green" "" . shorten 50
  22. }
  23. , modMask = mod4Mask
  24. , terminal = "st"
  25. , borderWidth = 6
  26. , normalBorderColor = "#6666ea"
  27. , focusedBorderColor = "#5ab738"
  28. } `additionalKeys`
  29. [ ((mod4Mask .|. shiftMask, xK_z), spawn "i3lock -i ~/img/wps/rbgrad1.png -u")
  30. , ((mod4Mask, xK_s), spawn "scrot '%F_%T.png' -e 'mv $f /home/jord/img/scrots'")
  31. , ((mod4Mask, xK_f), spawn "firefox")
  32. , ((mod4Mask, xK_e), spawn "emacs")
  33. ]