]> git.sur5r.net Git - i3/i3/blob - CMDMODE
remove hard-coded paths since we now use pkg-config for all the dependencies
[i3/i3] / CMDMODE
1 ---------------------
2 - Command mode
3 ---------------------
4
5 This is the grammar for the 'command mode' (your configuration file
6 uses these commands, too).
7
8 left  := <h> | <cursor-left>
9 right := <l> | <cursor-right>
10 up    := <j> | <cursor-up>
11 down  := <k> | <cursor-down>
12
13 where := <left|right|up|down> | <tag>
14 move  := <m>
15 snap  := <s>
16
17 cmd     := [ <times> ] [ <move> | <snap> ] <where>
18 with    := <w> { [ <times> ] <where> }+ <space> <cmd>
19 jump    := [ "<window class>[/<window title>]" | <workspace> [ <column> <row> ] ]
20 focus   := focus [ <times> | floating | tiling | ft ]
21   (travels the focus stack backwards, <times> number of times (by default 1).
22    So by specifying "focus 1" it selects the window which last had the focus
23    before you focused the current one window.
24    The following 3 special values are also valid:
25     'floating' (select the next floating window).
26       'tiling' (select the next tiling window).
27           'ft' (toggle tiling/floating: if the current window is floating,
28                 select the next tiling window and vice-versa)
29 special := [ exec <path> | kill | exit | restart ]
30
31 input   := [ <cmd> | <with> | <jump> | <focus> | <special> ]
32
33 you can cancel command mode by pressing escape anytime.
34
35 Some examples:
36
37 Select the window on the left:
38 h
39
40 Select the window two places on the left:
41 2h
42
43 Move window to the right:
44 ml
45
46 Move window and window on the bottom to the right:
47 wk ml