-
Notifications
You must be signed in to change notification settings - Fork 214
/
windows-bindings-defaults.lua
48 lines (46 loc) · 2 KB
/
windows-bindings-defaults.lua
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
47
48
-- Default keybindings for WindowLayout Mode
--
-- To customize the key bindings for WindowLayout Mode, create a copy of this
-- file, save it as `windows-bindings.lua`, and edit the table below to
-- configure your preferred shortcuts.
--------------------------------------------------------------------------------
-- Define WindowLayout Mode
--
-- WindowLayout Mode allows you to manage window layout using keyboard shortcuts
-- that are on the home row, or very close to it. Use Control+s to turn
-- on WindowLayout mode. Then, use any shortcut below to perform a window layout
-- action. For example, to send the window left, press and release
-- Control+s, and then press h.
--
-- h/j/k/l => send window to the left/bottom/top/right half of the screen
-- i => send window to the upper left quarter of the screen
-- o => send window to the upper right quarter of the screen
-- , => send window to the lower left quarter of the screen
-- . => send window to the lower right quarter of the screen
-- return => make window full screen
-- n => send window to the next monitor
-- left => send window to the monitor on the left (if there is one)
-- right => send window to the monitor on the right (if there is one)
--------------------------------------------------------------------------------
return {
modifiers = {'ctrl'},
showHelp = false,
trigger = 's',
mappings = {
{ {}, 'return', 'maximize' },
{ {}, 'space', 'centerWithFullHeight' },
{ {}, 'h', 'left' },
{ {}, 'j', 'down' },
{ {}, 'k', 'up' },
{ {}, 'l', 'right' },
{ {'shift'}, 'h', 'left40' },
{ {'shift'}, 'l', 'right60' },
{ {}, 'i', 'upLeft' },
{ {}, 'o', 'upRight' },
{ {}, ',', 'downLeft' },
{ {}, '.', 'downRight' },
{ {}, 'n', 'nextScreen' },
{ {}, 'right', 'moveOneScreenEast' },
{ {}, 'left', 'moveOneScreenWest' },
}
}