2009-05-05 11:25:56 -04:00
|
|
|
---------------------
|
|
|
|
- Command mode
|
|
|
|
---------------------
|
2009-02-10 11:09:31 -05:00
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
This is the grammar for the command mode (your configuration file uses these commands, too).
|
2009-02-10 14:49:47 -05:00
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
left := <h> | <cursor-left>
|
|
|
|
right := <l> | <cursor-right>
|
|
|
|
up := <j> | <cursor-up>
|
|
|
|
down := <k> | <cursor-down>
|
2009-03-30 03:27:58 -04:00
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
where := <left|right|up|down> | <tag>
|
|
|
|
move := <m>
|
|
|
|
snap := <s>
|
|
|
|
|
|
|
|
cmd := [ <times> ] [ <move> | <snap> ] <where>
|
|
|
|
with := <w> { [ <times> ] <where> }+ <space> <cmd>
|
|
|
|
jump := [ "<window class>[/<window title>]" | <workspace> [ <column> <row> ] ]
|
2009-06-21 10:14:15 -04:00
|
|
|
focus := focus [ <times> | floating | tiling | ft ]
|
2009-05-05 11:25:56 -04:00
|
|
|
(travels the focus stack backwards the given amount of times (by default 1), so
|
|
|
|
it selects the window which had the focus before you focused the current one when
|
2009-06-21 10:14:15 -04:00
|
|
|
specifying "focus 1".
|
|
|
|
The special values 'floating' (select the next floating window), 'tiling'
|
|
|
|
(select the next tiling window), 'ft' (if the current window is floating,
|
|
|
|
select the next tiling window and vice-versa) are also valid)
|
2009-03-14 17:09:36 -04:00
|
|
|
special := [ exec <path> | kill | exit | restart ]
|
2009-02-10 11:09:31 -05:00
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
input := [ <cmd> | <with> | <jump> | <focus> | <special> ]
|
|
|
|
|
|
|
|
you can cancel command mode by pressing escape anytime.
|
2009-02-10 11:09:31 -05:00
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
Some examples:
|
2009-02-10 11:09:31 -05:00
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
Select the window on the left:
|
2009-02-10 11:09:31 -05:00
|
|
|
h
|
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
Select the window two places on the left:
|
2009-02-10 11:09:31 -05:00
|
|
|
2h
|
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
Move window to the right:
|
2009-02-10 11:09:31 -05:00
|
|
|
ml
|
|
|
|
|
2009-05-05 11:25:56 -04:00
|
|
|
Move window and window on the bottom to the right:
|
2009-02-10 14:49:47 -05:00
|
|
|
wk ml
|