Guest User

Untitled

a guest
Jun 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. -- ~/.xmonad/xmonad.hs comments here preceded by --
  2. -- | | | |
  3. -- V V V V
  4.  
  5. -- these are the utility modules to import
  6. import XMonad
  7.  
  8. import Data.Monoid
  9. import System.Exit
  10. import qualified XMonad.StackSet as W
  11. import qualified Data.Map as M
  12.  
  13. import XMonad.Hooks.DynamicLog --the following 5 lines cribbed
  14. import XMonad.Hooks.ManageDocks --from the John Goerzen config
  15. import XMonad.Util.Run(spawnPipe)
  16. import XMonad.Util.EZConfig(additionalKeys)
  17. import System.IO
  18.  
  19.  
  20. -----------------------------------------------------------------
  21. -----------------------------------------------------------------
  22.  
  23. --which apps should have floating windows, (under construction)
  24.  
  25. myManageHook = composeAll
  26. [ className =? "Gimp" --> doFloat
  27. ]
  28.  
  29. -----------------------------------------------------------------
  30. -----------------------------------------------------------------
  31.  
  32. main = do
  33. xmproc <- spawnPipe "xmobar" --starts xmobar, passes CL arg path to config file
  34. xmonad $ defaultConfig
  35. { borderWidth = 1
  36. , terminal = "urxvt" --specifies terminal program
  37. , normalBorderColor = "#000000" --color of unfocused window border
  38. , focusedBorderColor = "#B87333" --"#C76114" --color of focused window border
  39. , focusFollowsMouse = False
  40. , manageHook = manageDocks <+> manageHook defaultConfig
  41. , layoutHook = avoidStruts $ layoutHook defaultConfig
  42. , logHook = dynamicLogWithPP xmobarPP --logHook uses hPutStrLn xmproc; pipes data to xmb
  43. { ppOutput = hPutStrLn xmproc
  44. , ppTitle = xmobarColor "#0EBFE9" "" . shorten 70 --70 characters of window title in xmb
  45. } --closes ppOutput bracket
  46. } `additionalKeys` myKeys --closes manageHook bracket
  47.  
  48. ------------------------------------------------------------------
  49. ------------------------------------------------------------------
  50. -- Key bindings. Add, modify or remove key bindings here.
  51.  
  52. myKeys =
  53.  
  54. [-- launch dmenu, version 4.4.1
  55. ((mod1Mask, xK_p), spawn "dmenu_run")
  56.  
  57. -- screenshot screen
  58. , ((mod1Mask, xK_Print ), spawn "/usr/bin/screenshot scr")
  59.  
  60. -- [add other bindings here]
  61.  
  62. ]
Add Comment
Please, Sign In to add comment