Copyright | (c) Peter De Wachter <pdewacht@gmail.com> |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Peter De Wachter <pdewacht@gmail.com> Andrea Rossato <andrea.rossato@unibz.it> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell98 |
A gapless tiled layout that attempts to obey window size hints, rather than simply ignoring them.
Synopsis
- data HintedTile a = HintedTile {
- nmaster :: !Int
- delta :: !Rational
- frac :: !Rational
- alignment :: !Alignment
- orientation :: !Orientation
- data Orientation
- data Alignment
- = TopLeft
- | Center
- | BottomRight
Usage
You can use this module with the following in your ~/.xmonad/xmonad.hs
:
import XMonad.Layout.HintedTile
Then edit your layoutHook
by adding the HintedTile layout:
myLayout = hintedTile Tall ||| hintedTile Wide ||| Full ||| etc.. where hintedTile = HintedTile nmaster delta ratio TopLeft nmaster = 1 ratio = 1/2 delta = 3/100 main = xmonad def { layoutHook = myLayout }
Because both Xmonad and Xmonad.Layout.HintedTile define Tall,
you need to disambiguate Tall. If you are replacing the
built-in Tall with HintedTile, change import Xmonad
to
import Xmonad hiding (Tall)
.
For more detailed instructions on editing the layoutHook see:
data HintedTile a Source #
HintedTile | |
|
Instances
data Orientation Source #
Instances
Eq Orientation Source # | |
Defined in XMonad.Layout.HintedTile (==) :: Orientation -> Orientation -> Bool # (/=) :: Orientation -> Orientation -> Bool # | |
Ord Orientation Source # | |
Defined in XMonad.Layout.HintedTile compare :: Orientation -> Orientation -> Ordering # (<) :: Orientation -> Orientation -> Bool # (<=) :: Orientation -> Orientation -> Bool # (>) :: Orientation -> Orientation -> Bool # (>=) :: Orientation -> Orientation -> Bool # max :: Orientation -> Orientation -> Orientation # min :: Orientation -> Orientation -> Orientation # | |
Read Orientation Source # | |
Defined in XMonad.Layout.HintedTile readsPrec :: Int -> ReadS Orientation # readList :: ReadS [Orientation] # readPrec :: ReadPrec Orientation # readListPrec :: ReadPrec [Orientation] # | |
Show Orientation Source # | |
Defined in XMonad.Layout.HintedTile showsPrec :: Int -> Orientation -> ShowS # show :: Orientation -> String # showList :: [Orientation] -> ShowS # |