aboutsummaryrefslogtreecommitdiffstats
path: root/HintedTile.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:40:19 +0200
committerAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:40:19 +0200
commit35b3ba741b02d8944a4930f1527b9b41e6ce8089 (patch)
tree7fd62d277a583a34ad58de945eae2ef73cef2a2b /HintedTile.hs
parent4132469d520fb3c14ce3101e9ba4cb41a7b7c681 (diff)
downloadXMonadContrib-35b3ba741b02d8944a4930f1527b9b41e6ce8089.tar.gz
XMonadContrib-35b3ba741b02d8944a4930f1527b9b41e6ce8089.tar.xz
XMonadContrib-35b3ba741b02d8944a4930f1527b9b41e6ce8089.zip
HintedTile.hs: info and documentation
darcs-hash:20070614144019-32816-c10be6884bfc25bed84c8e6bce50b69f86c409d2.gz
Diffstat (limited to 'HintedTile.hs')
-rw-r--r--HintedTile.hs25
1 files changed, 24 insertions, 1 deletions
diff --git a/HintedTile.hs b/HintedTile.hs
index 22ea946..6ec408e 100644
--- a/HintedTile.hs
+++ b/HintedTile.hs
@@ -1,4 +1,22 @@
-module XMonadContrib.HintedTile (tall, wide) where
+-----------------------------------------------------------------------------
+-- |
+-- Module : XMonadContrib.HintedTile
+-- Copyright : (c) Peter De Wachter <pdewacht@gmail.com>
+-- License : BSD3-style (see LICENSE)
+--
+-- Maintainer : Peter De Wachter <pdewacht@gmail.com>
+-- Stability : unstable
+-- Portability : unportable
+--
+-- A gapless tiled layout that attempts to obey window size hints,
+-- rather than simply ignoring them.
+--
+-----------------------------------------------------------------------------
+
+module XMonadContrib.HintedTile (
+ -- * Usage
+ -- $usage
+ tall, wide) where
import XMonad
import Operations (Resize(..), IncMasterN(..), applySizeHints)
@@ -8,6 +26,11 @@ import Graphics.X11.Xlib
import Graphics.X11.Xlib.Extras
import Control.Monad
+-- $usage
+-- You can use this module with the following in your Config.hs file:
+--
+-- > import XMonadContrib.HintedTile
+
-- this sucks
addBorder, substractBorder :: (Dimension, Dimension) -> (Dimension, Dimension)
addBorder (w, h) = (w + 2 * borderWidth, h + 2 * borderWidth)