xmonad-contrib
Copyright(c) Jan Vornberger 2009
Alejandro Serrano 2010
LicenseBSD3-style (see LICENSE)
Maintainerjan.vornberger@informatik.uni-oldenburg.de
Stabilityunstable
Portabilitynot portable
Safe HaskellNone
LanguageHaskell2010

XMonad.Layout.WindowSwitcherDecoration

Contents

Description

A decoration that allows to switch the position of windows by dragging them onto each other.

Synopsis

Usage:

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

import XMonad.Layout.WindowSwitcherDecoration
import XMonad.Layout.DraggingVisualizer

Then edit your layoutHook by adding the WindowSwitcherDecoration to your layout:

myL = windowSwitcherDecoration shrinkText def (draggingVisualizer $ layoutHook def)
main = xmonad def { layoutHook = myL }

There is also a version of the decoration that contains buttons like XMonad.Layout.ButtonDecoration. To use that version, you will need to import XMonad.Layout.DecorationAddons as well and modify your layoutHook in the following way:

import XMonad.Layout.DecorationAddons

myL = windowSwitcherDecorationWithButtons shrinkText defaultThemeWithButtons (draggingVisualizer $ layoutHook def)
main = xmonad def { layoutHook = myL }

Additionaly, there is a version of the decoration that contains image buttons like XMonad.Layout.ImageButtonDecoration. To use that version, you will need to import XMonad.Layout.ImageButtonDecoration as well and modify your layoutHook in the following way:

import XMonad.Layout.ImageButtonDecoration

myL = windowSwitcherDecorationWithImageButtons shrinkText defaultThemeWithImageButtons (draggingVisualizer $ layoutHook def)
main = xmonad def { layoutHook = myL }

data WindowSwitcherDecoration a Source #

Instances

Instances details
Eq a => DecorationStyle WindowSwitcherDecoration a Source # 
Instance details

Defined in XMonad.Layout.WindowSwitcherDecoration

Methods

describeDeco :: WindowSwitcherDecoration a -> String Source #

shrink :: WindowSwitcherDecoration a -> Rectangle -> Rectangle -> Rectangle Source #

decorationEventHook :: WindowSwitcherDecoration a -> DecorationState -> Event -> X () Source #

decorationCatchClicksHook :: WindowSwitcherDecoration a -> Window -> Int -> Int -> X Bool Source #

decorationWhileDraggingHook :: WindowSwitcherDecoration a -> CInt -> CInt -> (Window, Rectangle) -> Position -> Position -> X () Source #

decorationAfterDraggingHook :: WindowSwitcherDecoration a -> (Window, Rectangle) -> Window -> X () Source #

pureDecoration :: WindowSwitcherDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> Maybe Rectangle Source #

decorate :: WindowSwitcherDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> X (Maybe Rectangle) Source #

Read (WindowSwitcherDecoration a) Source # 
Instance details

Defined in XMonad.Layout.WindowSwitcherDecoration

Show (WindowSwitcherDecoration a) Source # 
Instance details

Defined in XMonad.Layout.WindowSwitcherDecoration

Methods

showsPrec :: Int -> WindowSwitcherDecoration a -> ShowS

show :: WindowSwitcherDecoration a -> String

showList :: [WindowSwitcherDecoration a] -> ShowS

data ImageWindowSwitcherDecoration a Source #

Instances

Instances details
Eq a => DecorationStyle ImageWindowSwitcherDecoration a Source # 
Instance details

Defined in XMonad.Layout.WindowSwitcherDecoration

Methods

describeDeco :: ImageWindowSwitcherDecoration a -> String Source #

shrink :: ImageWindowSwitcherDecoration a -> Rectangle -> Rectangle -> Rectangle Source #

decorationEventHook :: ImageWindowSwitcherDecoration a -> DecorationState -> Event -> X () Source #

decorationCatchClicksHook :: ImageWindowSwitcherDecoration a -> Window -> Int -> Int -> X Bool Source #

decorationWhileDraggingHook :: ImageWindowSwitcherDecoration a -> CInt -> CInt -> (Window, Rectangle) -> Position -> Position -> X () Source #

decorationAfterDraggingHook :: ImageWindowSwitcherDecoration a -> (Window, Rectangle) -> Window -> X () Source #

pureDecoration :: ImageWindowSwitcherDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> Maybe Rectangle Source #

decorate :: ImageWindowSwitcherDecoration a -> Dimension -> Dimension -> Rectangle -> Stack a -> [(a, Rectangle)] -> (a, Rectangle) -> X (Maybe Rectangle) Source #

Read (ImageWindowSwitcherDecoration a) Source # 
Instance details

Defined in XMonad.Layout.WindowSwitcherDecoration

Show (ImageWindowSwitcherDecoration a) Source # 
Instance details

Defined in XMonad.Layout.WindowSwitcherDecoration