Debian Codegraph @

revelation/README.md

raw symbols SCIP
1 # revelation.lua
2
3 Provides Mac OSX like 'Expose' view of all clients.
4
5 This is a fork from [revelation](https://github.com/bioe007/awesome-revelation)
6 It is modified from the original revelation.lua for incorporating with awesome 3.5 or later.
7 It also have some features.
8
9
10 **Now master branch works for both master and stable awesome WM**
11
12 ## Changes since 2015-09-26
13 When all clients are exposing, you can zoom (__Modkey + Shift + hintbox charater__ or __right button__ of the mouse)
14 or kill a client (__middle button__ of the mouse) and the position of hintboxes will be updated accordingly.
15
16 ## Changes since 2014-02-19
17 * Now the revlation is able to handle the special clients(float, fullscreen or maximized etc.)
18 * When you select an minimized client, the revelation will un-minimized it and then focuse on it.
19 * Added an option to change character ordering
20
21 ## Changes after 2013-12-30
22 * Now it is possible, in revelation.init({...}), to change the default settings of
23 revelation module.
24
25 * Function `revelation(...)` now accept the parameter as a table `{rule={...}, is_excluded=...,
26 curr_tag_only=...}`.
27
28 1. To add specify rules `revelation({rule={...},...})`.
29 2. To exclude the clients matched by the rules instead of including `revelation({rule={...},
30 is_excluded=true})`.
31 3. `{...,curr_tag_only=true}` make the revelation only collect the client from current
32 tags.
33
34
35 ## Changes from the original revelation
36 * Support awesome 3.5 or later
37
38 * Add the support of multiple screens. Now multiple 'Expose' views will be shown
39 on the multiple screens at the same time.
40
41 * The way of selecting and focusing the client was changed. The old way that is
42 navigating clients by pressing the keys "j, h, k, l" and then selecting the
43 client by pressing key "Enter" was deprecated. Now each client in the 'Expose'
44 views come with a letter surrounding by a hint box, you can select the client
45 by pressing the corresponding letter in the hint box. The idea and codes of this method
46 was copied from the module [hint](https://github.com/zackpete/hints).
47
48 * Add zoom mode. Add the function of zooming the client by pressing the right
49 button of the mouse.
50
51 * The unwanted clients can be excluded by the parameter`{rule={...}....}`.
52
53 ## Screenshot
54
55 ![screenshot](./screenshot.png)
56
57
58 ## Usage
59
60 ### Installation
61 (From user's awesome configuration directory, usually ~/.config/awesome)
62
63 1. Clone the repository:
64
65 git clone https://github.com/guotsuan/awesome-revelation revelation
66
67 2. Include it at the top of your rc.lua file:
68 `local revelation=require("revelation")`
69
70 3. **Important: Add `revelation.init()` after `beautiful.init()`**
71
72 3. Define a global keybinding (e. g. `ModKey + e`) for revelation in your rc.lua:
73
74 globalkeys = awful.util.table.join(
75 awful.key({ modkey, }, "Left", awful.tag.viewprev ),
76 awful.key({ modkey, }, "Right", awful.tag.viewnext ),
77 awful.key({ modkey, }, "Escape", awful.tag.history.restore),
78 awful.key({ modkey, }, "e", revelation),
79 awful.key({ modkey, }, "j",
80 function ()
81 awful.client.focus.byidx( 1)
82 if client.focus then client.focus:raise() end
83 end),
84
85 **NOTE:** Always double check the key binding syntax against the version of
86 Awesome which you are using.
87
88 4. Restart Awesome (usually __Modkey + Control + r__) and try the keybinding __Modkey + e__.
89
90 It should bring up all clients from the current tags on all screens and set the layout to fair.
91 You can focus clients with the __cursor__ keys, and then press the __left__ button to select,
92 or you can directly focus a client by pressing the corresponding key shown in the hint box.
93 Press the right mouse button to zoom the client or __Escape__ to abort.
94
95 ### Configuration
96 Revelation's configuration is done through the init() function
97
98 There are three basic settings, shown with default values:
99
100 -- The name of the tag created for the 'exposed' view
101 revelation.tag_name = 'Revelation'
102
103 -- A table of matcher functions (used in client filtering)
104 revelation.exact = awful.rules.match
105 revelation.any = awful.rules.match_any
106
107 -- Character order for selecting clients
108 revelation.charorder = "jkluiopyhnmfdsatgvcewqzx1234567890",
109
110 The rule matching functions must conform to `awful.rules.match` prototypes.
111
112 For client matching rules, we follow the same syntax as awful.rules expects.
113 If `rule.any == true`, then we call the `config.match.any` function.
114
115 to change the settings, use:
116
117 revelation.init({tag_name = ..., match = {...}, charorder = ...})
118
119
120 ### Examples
121 All clients:
122
123 awful.key({modkey}, "e", revelation)
124
125 To match all urxvt terminals:
126
127 awful.key({modkey}, "e", function()
128 revelation({rule={class="URxvt"}})
129 end)
130 To match clients with class 'foo' or 'bar':
131
132 awful.key({modkey}, "e", function()
133 revelation({
134 rule{class={"foo", "bar"},
135 any=true}
136 })
137 end)
138
139 To exclude the clients, we set:
140
141 awful.key({modkey}, "e", function()
142 revelation({rule={class="conky"}, is_excluded=true})
143 end)
144
145 To set only collect clients from current tag
146
147 awful.key({modkey}, "e", function()
148 revelation({rule={class="conky"}, is_excluded=true,
149 curr_tag_only=true})
150 end)
151
152 ## Credits
153
154 ### Maintenance
155 * Quan Guo <[email protected]>
156 * Perry Hargrave <[email protected]>
157
158 ### Contributions, many thanks!
159 * Daniel Hahler <[email protected]>
160 * Yauhen Kirylau
161 * Nikola Petrov <[email protected]>
162
163 ### Original authors
164 * Espen Wiborg <[email protected]>
165 * Julien Danjou <[email protected]>
166
167 (c) 20013-2014 Quan Guo
168 (c) 2009-12 Perry Hargrave
169 (c) 2008 Espen Wiborg, Julien Danjou