aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2008-02-09 17:39:17 +0100
committerAndrea Rossato <andrea.rossato@unibz.it>2008-02-09 17:39:17 +0100
commit279239e4b6ad9f6c559deb456a13856113f614a7 (patch)
treefc32383118f1f90987c938484a853c8888daf50d /XMonad
parent33fb75695422bdbe89d50203cc4429350cc428f0 (diff)
downloadXMonadContrib-279239e4b6ad9f6c559deb456a13856113f614a7.tar.gz
XMonadContrib-279239e4b6ad9f6c559deb456a13856113f614a7.tar.xz
XMonadContrib-279239e4b6ad9f6c559deb456a13856113f614a7.zip
Tabbed: add simpleTabbed and fx documentation
simpleTabbed is just a version of tabbed with default theme and default srhinker. darcs-hash:20080209163917-32816-e3591acbdfcb38ed0b7c712392a9808d2b78a373.gz
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Layout/Tabbed.hs27
1 files changed, 24 insertions, 3 deletions
diff --git a/XMonad/Layout/Tabbed.hs b/XMonad/Layout/Tabbed.hs
index db4ba3e..a1c81bf 100644
--- a/XMonad/Layout/Tabbed.hs
+++ b/XMonad/Layout/Tabbed.hs
@@ -17,7 +17,7 @@
module XMonad.Layout.Tabbed
( -- * Usage:
-- $usage
- tabbed, addTabs
+ simpleTabbed, tabbed, addTabs
, Theme (..)
, defaultTheme
, TabbedDecoration (..)
@@ -40,7 +40,14 @@ import XMonad.Layout.Simplest ( Simplest(Simplest) )
--
-- Then edit your @layoutHook@ by adding the Tabbed layout:
--
--- > myLayouts = tabDeco shrinkText defaultTheme ||| Full ||| etc..
+-- > myLayouts = simpleTabbed ||| Full ||| etc..
+--
+-- or, if you want a specific theme for you tabbed layout:
+--
+-- > myLayouts = tabbed shrinkText defaultTheme ||| Full ||| etc..
+--
+-- and then:
+--
-- > main = xmonad defaultConfig { layoutHook = myLayouts }
--
-- For more detailed instructions on editing the layoutHook see:
@@ -56,7 +63,21 @@ import XMonad.Layout.Simplest ( Simplest(Simplest) )
--
-- > mylayout = tabDeco shrinkText myTabConfig ||| Full ||| etc..
--- | This function is deprecated and will be removed before 0.7!!
+-- | A tabbed layout with the default xmonad Theme. Here's a screen
+-- shot:
+--
+-- <http://code.haskell.org/~arossato/xmonadShots/simpleTabbed.png>
+--
+-- This is a minimal working configuration:
+--
+-- > import XMonad
+-- > import XMonad.Layout.DecorationMadness
+-- > main = xmonad defaultConfig { layoutHook = simpleTabbed }
+simpleTabbed :: ModifiedLayout (Decoration TabbedDecoration DefaultShrinker) Simplest Window
+simpleTabbed = decoration shrinkText defaultTheme Tabbed Simplest
+
+-- | A layout decorated with tabs and the possibility to set a custom
+-- shrinker and a custom theme.
tabbed :: (Eq a, Shrinker s) => s -> Theme
-> ModifiedLayout (Decoration TabbedDecoration s) Simplest a
tabbed s c = decoration s c Tabbed Simplest