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 1.2
to use a custom level of magnification. You can even make the focused
window smaller for a pop in effect.
For more detailed instructions on editing the layoutHook see:
XMonad.Doc.Extending
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 )
, ((modMask x .|. controlMask , xK_m ), sendMessage Toggle )
Note that a few other extension modules, such as
XMonad.Layout.MultiToggle and XMonad.Layout.ToggleLayouts, also
define a message named Toggle. To avoid conflicts when using
these modules together, you can import Magnifier qualified, like
this:
import qualified XMonad.Layout.Magnifier as Mag
and then prefix Mag to the front of everything from this module,
like Mag.Toggle, Mag.magnifier, and so on.
For detailed instruction on editing the key binding see
XMonad.Doc.Extending.
|