File revelation.lua

Authors:

Espen Wiborg <espenhw@grumblesmurf.org>
Julien Danjou <julien@danjou.info>

Copyright ©2008 Espen Wiborg, Julien Danjou

Release: v3.1.2

Functions

keyboardhandler (restore) Returns keyboardhandler.
layout.default (t, n) The default layout function for revelation Tries to arrange clients in an approximated square grid, by calculating c = floor(sqrt(n)) and arranging for c columns in a tile layout.
revelation (class, fn, s) Implement Exposé (from Mac OS X).


Functions

keyboardhandler (restore)
Returns keyboardhandler. Arrow keys move focus, Return selects, Escape cancels. Ignores modifiers.

Parameters

  • restore:
layout.default (t, n)
The default layout function for revelation Tries to arrange clients in an approximated square grid, by calculating c = floor(sqrt(n)) and arranging for c columns in a tile layout.

Parameters

  • t: The tag to do revelation on.
  • n: The number of clients to reveal.
revelation (class, fn, s)
Implement Exposé (from Mac OS X).

Parameters

  • class: The class of clients to expose, or nil for all clients.
  • fn: A binary function f(t, n) to set the layout for tag t for n clients, or nil for the default layout.
  • s: The screen to consider clients of, or nil for "current screen".

Valid XHTML 1.0!