Copyright | (c) 2010 Audun Skaugen |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | audunskaugen@gmail.com |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell98 |
Hooks for sending messages about fullscreen windows to layouts, and a few example layout modifier that implement fullscreen windows.
- fullscreenFull :: LayoutClass l a => l a -> ModifiedLayout FullscreenFull l a
- fullscreenFocus :: LayoutClass l a => l a -> ModifiedLayout FullscreenFocus l a
- fullscreenFullRect :: LayoutClass l a => RationalRect -> l a -> ModifiedLayout FullscreenFull l a
- fullscreenFocusRect :: LayoutClass l a => RationalRect -> l a -> ModifiedLayout FullscreenFocus l a
- fullscreenFloat :: LayoutClass l a => l a -> ModifiedLayout FullscreenFloat l a
- fullscreenFloatRect :: LayoutClass l a => RationalRect -> l a -> ModifiedLayout FullscreenFloat l a
- fullscreenEventHook :: Event -> X All
- fullscreenManageHook :: ManageHook
- fullscreenManageHookWith :: Query Bool -> ManageHook
- data FullscreenMessage
- = AddFullscreen Window
- | RemoveFullscreen Window
- | FullscreenChanged
- data FullscreenFloat a
- data FullscreenFocus a
- data FullscreenFull a
Usage:
Provides a ManageHook and an EventHook that sends layout messages with information about fullscreening windows. This allows layouts to make their own decisions about what they should to with a window that requests fullscreen.
The module also includes a few layout modifiers as an illustration of how such layouts should behave.
To use this module, add fullscreenEventHook
and fullscreenManageHook
to your config, i.e.
xmonad defaultconfig { handleEventHook = fullscreenEventHook, manageHook = fullscreenManageHook, layoutHook = myLayouts }
Now you can use layouts that respect fullscreen, for example the
provided fullscreenFull
:
myLayouts = fullscreenFull someLayout
fullscreenFull :: LayoutClass l a => l a -> ModifiedLayout FullscreenFull l a Source
Layout modifier that makes fullscreened window fill the entire screen.
fullscreenFocus :: LayoutClass l a => l a -> ModifiedLayout FullscreenFocus l a Source
Layout modifier that makes the fullscreened window fill the entire screen only if it is currently focused.
fullscreenFullRect :: LayoutClass l a => RationalRect -> l a -> ModifiedLayout FullscreenFull l a Source
As above, but the fullscreened window will fill the specified rectangle instead of the entire screen.
fullscreenFocusRect :: LayoutClass l a => RationalRect -> l a -> ModifiedLayout FullscreenFocus l a Source
As above, but the fullscreened window will fill the specified rectangle instead of the entire screen.
fullscreenFloat :: LayoutClass l a => l a -> ModifiedLayout FullscreenFloat l a Source
Hackish layout modifier that makes floating fullscreened windows fill the entire screen.
fullscreenFloatRect :: LayoutClass l a => RationalRect -> l a -> ModifiedLayout FullscreenFloat l a Source
As above, but the fullscreened window will fill the specified rectangle instead of the entire screen.
fullscreenEventHook :: Event -> X All Source
The event hook required for the layout modifiers to work
fullscreenManageHook :: ManageHook Source
Manage hook that sets the fullscreen property for windows that are initially fullscreen
fullscreenManageHookWith :: Query Bool -> ManageHook Source
A version of fullscreenManageHook that lets you specify your own query to decide whether a window should be fullscreen.
data FullscreenMessage Source
Messages that control the fullscreen state of the window. AddFullscreen and RemoveFullscreen are sent to all layouts when a window wants or no longer wants to be fullscreen. FullscreenChanged is sent to the current layout after one of the above have been sent.
AddFullscreen Window | |
RemoveFullscreen Window | |
FullscreenChanged |
Message FullscreenMessage Source |
Types for reference
data FullscreenFloat a Source
LayoutModifier FullscreenFloat Window Source | |
(Ord a, Read a) => Read (FullscreenFloat a) Source | |
Show a => Show (FullscreenFloat a) Source |
data FullscreenFocus a Source
LayoutModifier FullscreenFocus Window Source | |
Read a => Read (FullscreenFocus a) Source | |
Show a => Show (FullscreenFocus a) Source |
data FullscreenFull a Source
LayoutModifier FullscreenFull Window Source | |
Read a => Read (FullscreenFull a) Source | |
Show a => Show (FullscreenFull a) Source |