2009-05-05 17:25:56 +02:00
|
|
|
---------------------
|
|
|
|
- Command mode
|
|
|
|
---------------------
|
2009-02-10 17:09:31 +01:00
|
|
|
|
2010-03-21 01:50:10 +01:00
|
|
|
This is the grammar for the 'command mode' (your configuration file
|
|
|
|
uses these commands, too).
|
2009-02-10 20:49:47 +01:00
|
|
|
|
2009-05-05 17:25:56 +02:00
|
|
|
left := <h> | <cursor-left>
|
|
|
|
right := <l> | <cursor-right>
|
|
|
|
up := <j> | <cursor-up>
|
|
|
|
down := <k> | <cursor-down>
|
2009-03-30 09:27:58 +02:00
|
|
|
|
2009-05-05 17:25:56 +02: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 16:14:15 +02:00
|
|
|
focus := focus [ <times> | floating | tiling | ft ]
|
2010-03-21 01:50:10 +01: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 22:09:36 +01:00
|
|
|
special := [ exec <path> | kill | exit | restart ]
|
2009-02-10 17:09:31 +01:00
|
|
|
|
2010-03-21 01:50:10 +01:00
|
|
|
input := [ <cmd> | <with> | <jump> | <focus> | <special> ]
|
2009-05-05 17:25:56 +02:00
|
|
|
|
|
|
|
you can cancel command mode by pressing escape anytime.
|
2009-02-10 17:09:31 +01:00
|
|
|
|
2009-05-05 17:25:56 +02:00
|
|
|
Some examples:
|
2009-02-10 17:09:31 +01:00
|
|
|
|
2009-05-05 17:25:56 +02:00
|
|
|
Select the window on the left:
|
2009-02-10 17:09:31 +01:00
|
|
|
h
|
|
|
|
|
2009-05-05 17:25:56 +02:00
|
|
|
Select the window two places on the left:
|
2009-02-10 17:09:31 +01:00
|
|
|
2h
|
|
|
|
|
2009-05-05 17:25:56 +02:00
|
|
|
Move window to the right:
|
2009-02-10 17:09:31 +01:00
|
|
|
ml
|
|
|
|
|
2009-05-05 17:25:56 +02:00
|
|
|
Move window and window on the bottom to the right:
|
2009-02-10 20:49:47 +01:00
|
|
|
wk ml
|