2009-05-05 11:25:56 -04:00
|
|
|
---------------------
|
|
|
|
- Command mode
|
|
|
|
---------------------
|
2009-02-10 11:09:31 -05:00
|
|
|
|
2010-03-20 20:50:10 -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 ]
|
2010-03-20 20:50:10 -04:00
|
|
|
(travels the focus stack backwards, <times> number of times (by default 1).
|
|
|
|
So by specifying "focus 1" it selects the window which last had the focus
|
|
|
|
before you focused the current one window.
|
|
|
|
The following 3 special values are also valid:
|
|
|
|
'floating' (select the next floating window).
|
|
|
|
'tiling' (select the next tiling window).
|
|
|
|
'ft' (toggle tiling/floating: if the current window is floating,
|
|
|
|
select the next tiling window and vice-versa)
|
2009-03-14 17:09:36 -04:00
|
|
|
special := [ exec <path> | kill | exit | restart ]
|
2009-02-10 11:09:31 -05:00
|
|
|
|
2010-03-20 20:50:10 -04:00
|
|
|
input := [ <cmd> | <with> | <jump> | <focus> | <special> ]
|
2009-05-05 11:25:56 -04:00
|
|
|
|
|
|
|
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
|