mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 14:04:11 +01:00
commands: add nop
This commit is contained in:
parent
744724b3cb
commit
c1af79532f
@ -136,6 +136,7 @@ sway_cmd cmd_mark;
|
|||||||
sway_cmd cmd_mode;
|
sway_cmd cmd_mode;
|
||||||
sway_cmd cmd_mouse_warping;
|
sway_cmd cmd_mouse_warping;
|
||||||
sway_cmd cmd_move;
|
sway_cmd cmd_move;
|
||||||
|
sway_cmd cmd_nop;
|
||||||
sway_cmd cmd_opacity;
|
sway_cmd cmd_opacity;
|
||||||
sway_cmd cmd_new_float;
|
sway_cmd cmd_new_float;
|
||||||
sway_cmd cmd_new_window;
|
sway_cmd cmd_new_window;
|
||||||
|
@ -146,6 +146,7 @@ static struct cmd_handler command_handlers[] = {
|
|||||||
{ "layout", cmd_layout },
|
{ "layout", cmd_layout },
|
||||||
{ "mark", cmd_mark },
|
{ "mark", cmd_mark },
|
||||||
{ "move", cmd_move },
|
{ "move", cmd_move },
|
||||||
|
{ "nop", cmd_nop },
|
||||||
{ "opacity", cmd_opacity },
|
{ "opacity", cmd_opacity },
|
||||||
{ "reload", cmd_reload },
|
{ "reload", cmd_reload },
|
||||||
{ "rename", cmd_rename },
|
{ "rename", cmd_rename },
|
||||||
|
5
sway/commands/nop.c
Normal file
5
sway/commands/nop.c
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include "sway/commands.h"
|
||||||
|
|
||||||
|
struct cmd_results *cmd_nop(int argc, char **argv) {
|
||||||
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||||
|
}
|
@ -64,6 +64,7 @@ sway_sources = files(
|
|||||||
'commands/mouse_warping.c',
|
'commands/mouse_warping.c',
|
||||||
'commands/move.c',
|
'commands/move.c',
|
||||||
'commands/no_focus.c',
|
'commands/no_focus.c',
|
||||||
|
'commands/nop.c',
|
||||||
'commands/output.c',
|
'commands/output.c',
|
||||||
'commands/reload.c',
|
'commands/reload.c',
|
||||||
'commands/rename.c',
|
'commands/rename.c',
|
||||||
|
@ -167,6 +167,10 @@ They are expected to be used with *bindsym* or at runtime through *swaymsg*(1).
|
|||||||
*move* [to] scratchpad
|
*move* [to] scratchpad
|
||||||
Moves the focused window to the scratchpad.
|
Moves the focused window to the scratchpad.
|
||||||
|
|
||||||
|
*nop* <comment>
|
||||||
|
A no operation command that can be used to override default behaviour. The
|
||||||
|
optional comment argument is ignored, but logged for debugging purposes.
|
||||||
|
|
||||||
*reload*
|
*reload*
|
||||||
Reloads the sway config file and applies any changes.
|
Reloads the sway config file and applies any changes.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user