xmonad-contrib-0.17.1: Community-maintained extensions for xmonad
CopyrightQuentin Moser <moserq@gmail.com>
LicenseBSD-style (see LICENSE)
Maintainerorphaned
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Layout.Renamed

Contents

Description

Layout modifier that can modify the description of its underlying layout on a (hopefully) flexible way.

Synopsis

Usage

You can use this module by adding

import XMonad.Layout.Renamed

to your ~/.xmonad/xmonad.hs.

You can then use renamed to modify the description of your layouts. For example:

myLayout = renamed [PrependWords "Awesome"] $ tiled ||| Mirror tiled ||| Full

renamed :: [Rename a] -> l a -> ModifiedLayout Rename l a Source #

Apply a list of Rename values to a layout, from left to right.

data Rename a Source #

The available renaming operations

Constructors

CutLeft Int

Remove a number of characters from the left

CutRight Int

Remove a number of characters from the right

Append String

Add a string on the right

Prepend String

Add a string on the left

CutWordsLeft Int

Remove a number of words from the left

CutWordsRight Int

Remove a number of words from the right

KeepWordsLeft Int

Keep a number of words from the left

KeepWordsRight Int

Keep a number of words from the right

AppendWords String

Add a string to the right, prepending a space to it if necessary

PrependWords String

Add a string to the left, appending a space to it if necessary

Replace String

Replace with another string

Chain [Rename a]

Apply a list of modifications in left-to-right order

Instances

Instances details
LayoutModifier Rename a Source # 
Instance details

Defined in XMonad.Layout.Renamed

Methods

modifyLayout :: LayoutClass l a => Rename a -> Workspace WorkspaceId (l a) a -> Rectangle -> X ([(a, Rectangle)], Maybe (l a)) Source #

modifyLayoutWithUpdate :: LayoutClass l a => Rename a -> Workspace WorkspaceId (l a) a -> Rectangle -> X (([(a, Rectangle)], Maybe (l a)), Maybe (Rename a)) Source #

handleMess :: Rename a -> SomeMessage -> X (Maybe (Rename a)) Source #

handleMessOrMaybeModifyIt :: Rename a -> SomeMessage -> X (Maybe (Either (Rename a) SomeMessage)) Source #

pureMess :: Rename a -> SomeMessage -> Maybe (Rename a) Source #

redoLayout :: Rename a -> Rectangle -> Maybe (Stack a) -> [(a, Rectangle)] -> X ([(a, Rectangle)], Maybe (Rename a)) Source #

pureModifier :: Rename a -> Rectangle -> Maybe (Stack a) -> [(a, Rectangle)] -> ([(a, Rectangle)], Maybe (Rename a)) Source #

hook :: Rename a -> X () Source #

unhook :: Rename a -> X () Source #

modifierDescription :: Rename a -> String Source #

modifyDescription :: LayoutClass l a => Rename a -> l a -> String Source #

Read (Rename a) Source # 
Instance details

Defined in XMonad.Layout.Renamed

Show (Rename a) Source # 
Instance details

Defined in XMonad.Layout.Renamed

Methods

showsPrec :: Int -> Rename a -> ShowS #

show :: Rename a -> String #

showList :: [Rename a] -> ShowS #

Eq (Rename a) Source # 
Instance details

Defined in XMonad.Layout.Renamed

Methods

(==) :: Rename a -> Rename a -> Bool #

(/=) :: Rename a -> Rename a -> Bool #