diff options
author | Vsevolod <kefirchik3@gmail.com> | 2021-12-10 17:09:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 16:09:29 +0100 |
commit | f7725011efd3bc2762a0d1002ea5071470962213 (patch) | |
tree | 1ae3ada1e24f387829958961c216b2c231fa01f7 /sway/commands/client.c | |
parent | 3f58f12617ca4d6a311d060081e40bf01a73c239 (diff) |
Add focused_tab_title
Diffstat (limited to 'sway/commands/client.c')
-rw-r--r-- | sway/commands/client.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sway/commands/client.c b/sway/commands/client.c index dd0694df..77263145 100644 --- a/sway/commands/client.c +++ b/sway/commands/client.c @@ -18,6 +18,12 @@ static struct cmd_results *handle_command(int argc, char **argv, char *cmd_name, return error; } + if (argc > 3 && strcmp(cmd_name, "client.focused_tab_title") == 0) { + sway_log(SWAY_ERROR, + "Warning: indicator and child_border colors have no effect for %s", + cmd_name); + } + struct border_colors colors = {0}; const char *ind_hex = argc > 3 ? argv[3] : default_indicator; const char *child_hex = argc > 4 ? argv[4] : argv[1]; // def to background @@ -80,3 +86,13 @@ struct cmd_results *cmd_client_noop(int argc, char **argv) { sway_log(SWAY_INFO, "Warning: %s is ignored by sway", argv[-1]); return cmd_results_new(CMD_SUCCESS, NULL); } + +struct cmd_results *cmd_client_focused_tab_title(int argc, char **argv) { + struct cmd_results *result = handle_command(argc, argv, + "client.focused_tab_title", + &config->border_colors.focused_tab_title, "#2e9ef4ff"); + if (result && result->status == CMD_SUCCESS) { + config->has_focused_tab_title = true; + } + return result; +} |