Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/bindings/keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ It is formed by tag numbers `1`–`9`, optionally combined with `|`.
| :--- | :--- | :--- |
| `spawn` | `cmd` | Execute a command. |
| `spawn_shell` | `cmd` | Execute shell command (supports pipes `\|`). |
| `spawn_on_empty` | `cmd, tagmask` | Open command on empty tag.Accepts a cmd string and [tagmask](/docs/bindings/keys#tag-mask-format) |
| `spawn_on_empty` | `cmd, tagmask[,synctag]` | Open command on empty tag.Accepts a cmd string and [tagmask](/docs/bindings/keys#tag-mask-format) |
| `reload_config` | - | Hot-reload configuration. |
| `load_config_file` | `file path` | Load configuration from the specified file. Empty path resets to default config location. |
| `quit` | - | Exit mangowm. |
Expand Down
1 change: 1 addition & 0 deletions src/config/parse_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,7 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
func = spawn_on_empty;
(*arg).v = strdup(arg_value);
(*arg).ui = parse_tag_mask(arg_value2);
(*arg).i = atoi(arg_value3);
} else if (strcmp(func_name, "quit") == 0) {
func = quit;
} else if (strcmp(func_name, "create_virtual_output") == 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/dispatch/bind_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -1163,10 +1163,10 @@ void spawn_on_empty(const Arg *arg) {
}
}
if (!is_empty) {
view(arg, true);
bind_to_view(arg);
return;
} else {
view(arg, true);
bind_to_view(arg);
spawn_shell(arg);
}
return;
Expand Down