diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2008-04-30 10:22:53 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2008-04-30 10:22:53 +0200 |
commit | ce8dc62233514e70c5e4785574df9d07a5d2739b (patch) | |
tree | 0257d76b11c3b54864092586ded0f65961861781 /XMonad/Config | |
parent | e3ee5492f1d0108b944a203c5f98d54bdd2131fd (diff) | |
download | XMonadContrib-ce8dc62233514e70c5e4785574df9d07a5d2739b.tar.gz XMonadContrib-ce8dc62233514e70c5e4785574df9d07a5d2739b.tar.xz XMonadContrib-ce8dc62233514e70c5e4785574df9d07a5d2739b.zip |
Add XMonad.Config.Desktop and XMonad.Config.Gnome
darcs-hash:20080430082253-a5988-66822252a13bee869034da162f4a127ae06f9992.gz
Diffstat (limited to 'XMonad/Config')
-rw-r--r-- | XMonad/Config/Desktop.hs | 33 | ||||
-rw-r--r-- | XMonad/Config/Gnome.hs | 32 |
2 files changed, 65 insertions, 0 deletions
diff --git a/XMonad/Config/Desktop.hs b/XMonad/Config/Desktop.hs new file mode 100644 index 0000000..d004dbe --- /dev/null +++ b/XMonad/Config/Desktop.hs @@ -0,0 +1,33 @@ +{-# OPTIONS_GHC -fno-warn-missing-signatures #-} + +----------------------------------------------------------------------------- +-- | +-- Module : XMonad.Config.Desktop +-- Copyright : (c) Spencer Janssen <sjanssen@cse.unl.edu> +-- License : BSD +-- +-- Maintainer : Spencer Janssen <sjanssen@cse.unl.edu> +-- +-- This module provides a config suitable for use with a desktop +-- environment such as KDE or GNOME. + +module XMonad.Config.Desktop ( + -- * Usage + -- -- $usage + desktopConfig, + desktopLayoutModifiers + ) where + +import XMonad +import XMonad.Config (defaultConfig) +import XMonad.Hooks.ManageDocks +import XMonad.Hooks.EwmhDesktops + +desktopConfig = defaultConfig + { logHook = ewmhDesktopsLogHook + , layoutHook = desktopLayoutModifiers $ layoutHook defaultConfig + , manageHook = manageHook defaultConfig <+> manageDocks + } + +desktopLayoutModifiers = avoidStruts . ewmhDesktopsLayout + diff --git a/XMonad/Config/Gnome.hs b/XMonad/Config/Gnome.hs new file mode 100644 index 0000000..5aa2f3e --- /dev/null +++ b/XMonad/Config/Gnome.hs @@ -0,0 +1,32 @@ +{-# OPTIONS_GHC -fno-warn-missing-signatures #-} + +----------------------------------------------------------------------------- +-- | +-- Module : XMonad.Config.Gnome +-- Copyright : (c) Spencer Janssen <sjanssen@cse.unl.edu> +-- License : BSD +-- +-- Maintainer : Spencer Janssen <sjanssen@cse.unl.edu> +-- +-- This module provides a config suitable for use with the GNOME desktop +-- environment. + +module XMonad.Config.Gnome ( + -- * Usage + -- -- $usage + gnomeConfig + ) where + +import XMonad +import XMonad.Config.Desktop + +-- $usage +-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@: +-- +-- > import XMonad +-- > import XMonad.Config.Gnome +-- > +-- > main = xmonad gnomeConfig +-- + +gnomeConfig = desktopConfig { terminal = "gnome-terminal" } |