Copyright | (c) Spencer Janssen <spencerjanssen@gmail.com> |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Spencer Janssen <spencerjanssen@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A layout that splits the screen horizontally and shows two windows. The left window is always the master window, and the right is either the currently focused window or the second window in layout order.
Usage
You can use this module with the following in your ~/.xmonad/xmonad.hs
:
import XMonad.Layout.TwoPane
Then edit your layoutHook
by adding the TwoPane layout:
myLayout = TwoPane (3/100) (1/2) ||| Full ||| etc.. main = xmonad def { layoutHook = myLayout }
For more detailed instructions on editing the layoutHook see:
Instances
LayoutClass TwoPane a Source # | |
Defined in XMonad.Layout.TwoPane runLayout :: Workspace WorkspaceId (TwoPane a) a -> Rectangle -> X ([(a, Rectangle)], Maybe (TwoPane a)) # doLayout :: TwoPane a -> Rectangle -> Stack a -> X ([(a, Rectangle)], Maybe (TwoPane a)) # pureLayout :: TwoPane a -> Rectangle -> Stack a -> [(a, Rectangle)] # emptyLayout :: TwoPane a -> Rectangle -> X ([(a, Rectangle)], Maybe (TwoPane a)) # handleMessage :: TwoPane a -> SomeMessage -> X (Maybe (TwoPane a)) # pureMessage :: TwoPane a -> SomeMessage -> Maybe (TwoPane a) # description :: TwoPane a -> String # | |
Read (TwoPane a) Source # | |
Show (TwoPane a) Source # | |