Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. main :: IO ()
  2. main = do
  3. statBar <- spawnPipe myXMobar
  4. xmonad def
  5. { terminal = myTerminal
  6. , focusFollowsMouse = myFocusFollowsMouse
  7. , borderWidth = myBorderWidth
  8. , modMask = myModMask
  9. , workspaces = myWorkspaces
  10. , normalBorderColor = myNormalBorderColor
  11. , focusedBorderColor = myFocusedBorderColor
  12.  
  13. -- key bindings
  14. , keys = myKeys
  15. --, mouseBindings = myMouseBindings
  16.  
  17. -- hooks, layouts
  18. , layoutHook = myLayoutHook
  19. , manageHook = manageHook def <+> myManageHook
  20. --, handleEventHook = myEventHook
  21. , logHook = myLogHook statBar >> setWMName "LG3D"
  22. --, startupHook = myStartupHook
  23. }
  24.  
  25. kaleidoscope :: IO ()
  26. kaleidoscope = do
  27. statBar <- spawnPipe myXMobar
  28. xmonad def
  29. { terminal = myTerminal
  30. , focusFollowsMouse = myFocusFollowsMouse
  31. , borderWidth = myBorderWidth
  32. , modMask = myModMask
  33. , workspaces = myWorkspaces
  34. , normalBorderColor = myNormalBorderColor
  35. , focusedBorderColor = myFocusedBorderColor
  36.  
  37. -- key bindings
  38. , keys = myKeys
  39. --, mouseBindings = myMouseBindings
  40.  
  41. -- hooks, layouts
  42. , layoutHook = myLayoutHook
  43. , manageHook = manageHook def <+> myManageHook
  44. --, handleEventHook = myEventHook
  45. , logHook = myLogHook statBar >> setWMName "LG3D"
  46. --, startupHook = myStartupHook
  47. }
  48.  
  49. main :: IO ()
  50. main = EH.withCustomHelper kaleidoscopeConfig
  51. where
  52. kaleidoscopeConfig = EH.defaultConfig
  53. { EH.run = kaleidoscope
  54. , EH.compile = force -> EH.withLock ExitSuccess $ do
  55. let cmd =
  56. if force
  57. then "cd /home/oldmanmike/src/github.com/oldmanmike/kaleidoscope && stack clean && stack build"
  58. else "cd /home/oldmanmike/src/github.com/oldmanmike/kaleidoscope && stack build"
  59. EH.compileUsingShell cmd
  60. , EH.postCompile = EH.defaultPostCompile
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement