Copyright | (c) 2007 Andrea Rossato |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | andrea.rossato@unibz.it |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
XMonad.Layout.TabBarDecoration
Contents
Description
A layout modifier to add a bar of tabs to your layouts.
Synopsis
- simpleTabBar :: Eq a => l a -> ModifiedLayout (Decoration TabBarDecoration DefaultShrinker) (ModifiedLayout ResizeScreen l) a
- tabBar :: (Eq a, Shrinker s) => s -> Theme -> XPPosition -> l a -> ModifiedLayout (Decoration TabBarDecoration s) l a
- def :: Default a => a
- shrinkText :: DefaultShrinker
- newtype TabBarDecoration a = TabBar XPPosition
- data XPPosition
- module XMonad.Layout.ResizeScreen
Usage
You can use this module with the following in your
xmonad.hs
:
import XMonad.Layout.TabBarDecoration
Then edit your layoutHook
by adding the layout you want:
main = xmonad def { layoutHook = simpleTabBar $ layoutHook def}
For more detailed instructions on editing the layoutHook see the tutorial and XMonad.Doc.Extending.
tabBar
will give you the possibility of setting a custom shrinker
and a custom theme.
The default theme can be dynamically changed with the xmonad theme selector. See XMonad.Prompt.Theme. For more themes, look at XMonad.Util.Themes
simpleTabBar :: Eq a => l a -> ModifiedLayout (Decoration TabBarDecoration DefaultShrinker) (ModifiedLayout ResizeScreen l) a Source #
Add, on the top of the screen, a simple bar of tabs to a given | layout, with the default theme and the default shrinker.
tabBar :: (Eq a, Shrinker s) => s -> Theme -> XPPosition -> l a -> ModifiedLayout (Decoration TabBarDecoration s) l a Source #
Same of simpleTabBar
, but with the possibility of setting a
custom shrinker, a custom theme and the position: Top
or
Bottom
.
newtype TabBarDecoration a Source #
Constructors
TabBar XPPosition |
Instances
data XPPosition Source #
Constructors
Top | |
Bottom | |
CenteredAt | Prompt will be placed in the center horizontally and
in the certain place of screen vertically. If it's in the upper
part of the screen, completion window will be placed below (like
in |
Instances
Read XPPosition Source # | |
Defined in XMonad.Prompt Methods readsPrec :: Int -> ReadS XPPosition # readList :: ReadS [XPPosition] # readPrec :: ReadPrec XPPosition # readListPrec :: ReadPrec [XPPosition] # | |
Show XPPosition Source # | |
Defined in XMonad.Prompt Methods showsPrec :: Int -> XPPosition -> ShowS # show :: XPPosition -> String # showList :: [XPPosition] -> ShowS # |
module XMonad.Layout.ResizeScreen