Lazy objects¶
The lazy.lazy
object is a special helper object to specify a command for
later execution. This object acts like the root of the object graph, which
means that we can specify a key binding command with the same syntax used to
call the command through a script or through qtile shell.
Example¶
from libqtile.config import Key
from libqtile.command import lazy
keys = [
Key(
["mod1"], "k",
lazy.layout.down()
),
Key(
["mod1"], "j",
lazy.layout.up()
)
]
Lazy functions¶
This is overview of the commonly used functions for the key bindings. These functions can be called from commands on the Qtile object or on another object in the command tree.
Some examples are given below.
General functions¶
function |
description |
---|---|
|
Run the |
|
Open command prompt on the bar. See prompt widget. |
|
Restart Qtile and reload its config. It won’t close your windows |
|
Close the whole Qtile |
Group functions¶
function |
description |
---|---|
|
Use next layout on the actual group |
|
Use previous layout on the actual group |
|
Move to the group on the right |
|
Move to the group on the left |
|
Move to the last visited group |
|
Switch window focus to next window in group |
|
Switch window focus to previous window in group |
|
Move to the group called |
|
Increase the space for master window at the expense of slave windows |
|
Decrease the space for master window in the advantage of slave windows |
Window functions¶
function |
description |
---|---|
|
Close the focused window |
|
Switch window focus to other pane(s) of stack |
|
Move focused window to the group called |
|
Put the focused window to/from floating mode |
|
Put the focused window to/from fullscreen mode |
ScratchPad DropDown functions¶
function |
description |
---|---|
|
Toggles the visibility of the specified DropDown window. On first use, the configured process is spawned. |
User-defined functions¶
function |
description |
---|---|
|
Calls |