awesome-revelation/README.md

93 lines
2.8 KiB
Markdown
Raw Normal View History

2011-08-23 23:37:11 +02:00
# revelation.lua
Provides Mac OSX like 'Expose' view of all clients.
## Use
2011-10-21 01:18:17 +02:00
### Installation
2011-08-23 23:37:11 +02:00
(From user's awesome configuration directory, usually ~/.config/awesome)
1. Clone repository:
git clone https://bioe007@github.com/bioe007/awesome-revelation.git
2. put near the top of your rc.lua require("revelation")
2012-03-13 07:31:58 +01:00
3. Make a global keybinding (ModKey + e) for revelation in your rc.lua:
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey}, "e", revelation), -- Insert this line
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
2011-08-23 23:37:11 +02:00
**NOTE:** Always double check this key binding syntax against the version of
Awesome that you are using.
2012-03-13 07:31:58 +01:00
4. Reload rc.lua and try the keybinding (Press Modkey + e).
2011-08-23 23:37:11 +02:00
It should bring all clients to the current tag and set the layout to fair. You
can focus clients with __cursor__ or __hjkl__ keys then press __Enter__ or
press the mouse right button to select or __Escape__ to abort.
2011-08-23 23:37:11 +02:00
This is a modification of the original awesome library that implemented
expose like behavior.
2011-10-21 01:18:17 +02:00
### Configuration
Revelation's configuration is done through direct access to the module's
`config` table.
There are two basic settings, shown with default values:
-- The name of the tag created for the 'exposed' view
revelation.config.tag_name = 'Revelation'
-- A table of matcher functions (used in client filtering)
revelation.match.exact = awful.rules.match
revelation.match.any = awful.rules.match_any
The rule matching functions must conform to `awful.rules.match` prototypes.
For client matching rules, we follow the same syntax as awful.rules with one
perk; if `rule.any == true`, then we call the `config.match.any` function.
### Examples
All clients:
awful.key({modkey}, "e", revelation)
To match all urxvt terminals:
awful.key({modkey}, "e", function()
revelation({class="URxvt"})
end)
To match clients with class 'foo' or 'bar':
awful.key({modkey}, "e", function()
revelation({
class={"foo", "bar"},
any=true
})
end)
2011-08-23 23:37:11 +02:00
## Credits
### Maintenance
* Perry Hargrave <resixian@gmail.com>
### Contributions, many thanks!
* Nikola Petrov <nikolavp@gmail.com>
### Original authors
* Espen Wiborg <espenhw@grumblesmurf.org>
* Julien Danjou <julien@danjou.info>
2011-08-23 23:37:11 +02:00
## License
(c) 2008 Espen Wiborg, Julien Danjou