forked from jorenheit/awesome_alttab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
47 lines (36 loc) · 1.73 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Integrate familiar Alt-Tab functionality in Awesome WM 3.5, tested only on 3.5.5
Features:
* Live previews while alt-tabbing AND/OR Opacity effects for unselected clients
* Easily adjustable settings
* No previews when alt-tab is released within some time-frame
* Backward cycle using shift
* Intuitive order, respecting your client history
* Includes minimized clients (in contrast to some of the default window-switching utilies)
INSTALLATION:
1)
cd ~/.config/awesome
git clone https://github.com/jorenheit/awesome_alttab.git alttab
2) Import into rc.lua:
local alttab = require("alttab")
3) Optionally edit any subset of the following settings, the defaults are:
alttab.settings.preview_box = true, -- display preview-box
alttab.settings.preview_box_bg = "#ddddddaa", -- background color
alttab.settings.preview_box_border = "#22222200", -- border-color
alttab.settings.preview_box_fps = 30, -- refresh framerate
alttab.settings.preview_box_delay = 150, -- delay in ms
alttab.settings.client_opacity = false, -- set opacity for unselected clients
alttab.settings.client_opacity_value = 0.5, -- alpha-value
alttab.settings.client_opacity_delay = 150, -- delay in ms
4) Add key-bindings:
On my particular system, and I guess most, Shift-Tab is captured by the keygrabber as a
single key, namely "ISO_LEFT_TAB". Therefore, this is what my keybindings look like:
awful.key({ "Mod1", }, "Tab",
function ()
alttab.switch(1, "Alt_L", "Tab", "ISO_Left_Tab")
end
),
awful.key({ "Mod1", "Shift" }, "Tab",
function ()
alttab.switch(-1, "Alt_L", "Tab", "ISO_Left_Tab")
end
),