xmonad-contrib-0.6: Third party extensions for xmonadSource codeContentsIndex
XMonad.Layout.Magnifier
Portabilityunportable
Stabilityunstable
Maintainerandrea.rossato@unibz.it
Contents
Usage
Description

Screenshot : http://caladan.rave.org/magnifier.png

This is a layout modifier that will make a layout increase the size of the window that has focus.

Synopsis
magnifier :: l a -> ModifiedLayout Magnifier l a
magnifier' :: l a -> ModifiedLayout Magnifier l a
magnifiercz :: Rational -> l a -> ModifiedLayout Magnifier l a
magnifiercz' :: Rational -> l a -> ModifiedLayout Magnifier l a
data MagnifyMsg
= MagnifyMore
| MagnifyLess
| ToggleOn
| ToggleOff
Usage

You can use this module with the following in your ~/.xmonad/xmonad.hs:

 import XMonad.Layout.Magnifier

Then edit your layoutHook by adding the magnifier layout modifier to some layout:

 myLayouts = magnifier (Tall 1 (3/100) (1/2))  ||| Full ||| etc..
 main = xmonad defaultConfig { layoutHook = myLayouts }

By default magnifier increases the focused window's size by 1.5. You can also use:

 magnifiercz (12%10)

to use a custom level of magnification. You can even make the focused window smaller for a pop in effect. Keep in mind, you must

 import Data.Ratio

in order to use rationals (such as 12%10) in your config.

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending#Editing_the_layout_hook

Magnifier supports some commands. To use them add something like this to your key bindings:

    , ((modMask x .|. controlMask              , xK_plus ), sendMessage MagnifyMore)
    , ((modMask x .|. controlMask              , xK_minus), sendMessage MagnifyLess)
    , ((modMask x .|. controlMask              , xK_o    ), sendMessage ToggleOff  )
    , ((modMask x .|. controlMask .|. shiftMask, xK_o    ), sendMessage ToggleOn   )

For detailed instruction on editing the key binding see XMonad.Doc.Extending#Editing_key_bindings.

magnifier :: l a -> ModifiedLayout Magnifier l aSource
Increase the size of the window that has focus
magnifier' :: l a -> ModifiedLayout Magnifier l aSource
Increase the size of the window that has focus, unless if it is the master window.
magnifiercz :: Rational -> l a -> ModifiedLayout Magnifier l aSource
Change the size of the window that has focus by a custom zoom
magnifiercz' :: Rational -> l a -> ModifiedLayout Magnifier l aSource
Increase the size of the window that has focus by a custom zoom, unless if it is the master window.
data MagnifyMsg Source
Constructors
MagnifyMore
MagnifyLess
ToggleOn
ToggleOff
show/hide Instances
Produced by Haddock version 2.3.0