mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
cmd_mode: allow cmd_set to be a subcommand
This allows set to be used in mode blocks
This commit is contained in:
parent
cdcc2a5bb5
commit
8cd7f0171a
2 changed files with 5 additions and 4 deletions
|
@ -13,7 +13,8 @@
|
||||||
static struct cmd_handler mode_handlers[] = {
|
static struct cmd_handler mode_handlers[] = {
|
||||||
{ "bindcode", cmd_bindcode },
|
{ "bindcode", cmd_bindcode },
|
||||||
{ "bindswitch", cmd_bindswitch },
|
{ "bindswitch", cmd_bindswitch },
|
||||||
{ "bindsym", cmd_bindsym }
|
{ "bindsym", cmd_bindsym },
|
||||||
|
{ "set", cmd_set },
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cmd_results *cmd_mode(int argc, char **argv) {
|
struct cmd_results *cmd_mode(int argc, char **argv) {
|
||||||
|
|
|
@ -573,9 +573,9 @@ The default colors are:
|
||||||
Switches to the specified mode. The default mode _default_.
|
Switches to the specified mode. The default mode _default_.
|
||||||
|
|
||||||
*mode* [--pango_markup] <mode> <mode-subcommands...>
|
*mode* [--pango_markup] <mode> <mode-subcommands...>
|
||||||
The only valid _mode-subcommands..._ are *bindsym*, *bindcode* and
|
The only valid _mode-subcommands..._ are *bindsym*, *bindcode*,
|
||||||
*bindswitch*. If _--pango_markup_ is given, then _mode_ will be interpreted
|
*bindswitch*, and *set*. If _--pango_markup_ is given, then _mode_ will be
|
||||||
as pango markup.
|
interpreted as pango markup.
|
||||||
|
|
||||||
*mouse_warping* output|container|none
|
*mouse_warping* output|container|none
|
||||||
If _output_ is specified, the mouse will be moved to new outputs as you
|
If _output_ is specified, the mouse will be moved to new outputs as you
|
||||||
|
|
Loading…
Reference in a new issue