|
XMonad.Hooks.UrgencyHook | Portability | unportable | Stability | unstable | Maintainer | Devin Mullins <me@twifkak.com> |
|
|
|
|
|
Description |
UrgencyHook lets you configure an action to occur when a window demands
your attention. (In traditional WMs, this takes the form of "flashing"
on your "taskbar." Blech.)
|
|
Synopsis |
|
|
|
|
Usage
|
|
To wire this up, first add:
import XMonad.Hooks.UrgencyHook
to your import list in your config file. Now, choose an urgency hook. If
you're just interested in displaying the urgency state in your custom
logHook, then choose NoUrgencyHook. Otherwise, you may use the provided
dzenUrgencyHook, or write your own.
Enable your urgency hook by wrapping your config record in a call to
withUrgencyHook. For example:
main = xmonad $ withUrgencyHook dzenUrgencyHook { args = ["-bg", "darkgreen", "-xs", "1"] }
$ defaultConfig
If you want to modify your logHook to print out information about urgent windows,
the functions readUrgents and withUrgents are there to help you with that.
No example for you.
|
|
|
This is the preferred method of enabling an urgency hook. It will prepend
an action to your logHook that removes visible windows from the list of urgent
windows. If you don't like that behavior, you may use urgencyLayoutHook instead.
|
|
|
Focuses the most recently urgent window. Good for what ails ya -- I mean, your keybindings.
Example keybinding:
, ((modMask , xK_BackSpace), focusUrgent)
|
|
|
X action that returns a list of currently urgent windows. You might use
it, or withUrgents, in your custom logHook, to display the workspaces that
contain urgent windows.
|
|
|
An HOF version of readUrgents, for those who prefer that sort of thing.
|
|
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Flashes when a window requests your attention and you can't see it. Configurable
duration and args to dzen.
|
|
|
Constructors | | Instances | |
|
|
|
The class definition, and some pre-defined instances.
| | Methods | urgencyHook :: h -> a -> X () | Source |
|
| | Instances | |
|
|
|
Multiplies by ONE MILLION, for use with
runProcessWithInputAndWait.
Use like:
(5.5 `seconds`)
|
|
Produced by Haddock version 2.3.0 |