summaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-11-01 08:23:08 +0100
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-11-01 08:23:08 +0100
commitb7e7fa2399db8c05fdcf0edf9189dfefaa904cef (patch)
tree76dcbdaf5392f74926cc85e21f0971b8a4e94020 /Main.hs
parentc1dab22936b718b48f98b39befc6af6ce416fbf6 (diff)
downloadmetatile-b7e7fa2399db8c05fdcf0edf9189dfefaa904cef.tar
metatile-b7e7fa2399db8c05fdcf0edf9189dfefaa904cef.zip
Store user configuration in XConf
darcs-hash:20071101072308-a5988-e5a5231e3adcff8f03ebdab37721b19c0e19fc00
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs54
1 files changed, 27 insertions, 27 deletions
diff --git a/Main.hs b/Main.hs
index f38eda6..05cad2d 100644
--- a/Main.hs
+++ b/Main.hs
@@ -20,7 +20,8 @@ module Main where
-- Useful imports
--
import Control.Monad.Reader ( asks )
-import XMonad hiding ( logHook, borderWidth )
+import XMonad hiding (workspaces)
+import qualified XMonad (workspaces)
import Layouts
import Operations
import qualified StackSet as W
@@ -29,8 +30,7 @@ import Data.Bits ((.|.))
import qualified Data.Map as M
import System.Exit
import Graphics.X11.Xlib
-import EventLoop hiding ( workspaces )
-import qualified EventLoop ( workspaces )
+import EventLoop
-- % Extension-provided imports
@@ -230,30 +230,30 @@ mouseBindings = M.fromList $
-- % Extension-provided definitions
-defaultConfig :: XMonadConfig
-defaultConfig = XMonadConfig { borderWidth = 1 -- Width of the window border in pixels.
- , EventLoop.workspaces = workspaces
- , defaultGaps = [(0,0,0,0)] -- 15 for default dzen font
- -- | The top level layout switcher. Most users will not need to modify this binding.
- --
- -- By default, we simply switch between the layouts listed in `layouts'
- -- above, but you may program your own selection behaviour here. Layout
- -- transformers, for example, would be hooked in here.
- --
- , layoutHook = layout
- , defaultTerminal = "xterm" -- The preferred terminal program.
- , normalBorderColor = "#dddddd" -- Border color for unfocused windows.
- , focusedBorderColor = "#ff0000" -- Border color for focused windows.
- , EventLoop.keys = Main.keys
- , EventLoop.mouseBindings = Main.mouseBindings
- -- | Perform an arbitrary action on each internal state change or X event.
- -- Examples include:
- -- * do nothing
- -- * log the state to stdout
- --
- -- See the 'DynamicLog' extension for examples.
- , logHook = return ()
- }
+defaultConfig :: XConfig
+defaultConfig = XConfig { borderWidth = 1 -- Width of the window border in pixels.
+ , XMonad.workspaces = workspaces
+ , defaultGaps = [(0,0,0,0)] -- 15 for default dzen font
+ -- | The top level layout switcher. Most users will not need to modify this binding.
+ --
+ -- By default, we simply switch between the layouts listed in `layouts'
+ -- above, but you may program your own selection behaviour here. Layout
+ -- transformers, for example, would be hooked in here.
+ --
+ , layoutHook = layout
+ , defaultTerminal = "xterm" -- The preferred terminal program.
+ , normalBorderColor = "#dddddd" -- Border color for unfocused windows.
+ , focusedBorderColor = "#ff0000" -- Border color for focused windows.
+ , XMonad.keys = Main.keys
+ , XMonad.mouseBindings = Main.mouseBindings
+ -- | Perform an arbitrary action on each internal state change or X event.
+ -- Examples include:
+ -- * do nothing
+ -- * log the state to stdout
+ --
+ -- See the 'DynamicLog' extension for examples.
+ , logHook = return ()
+ }
-- % The main function