diff options
author | emersion <[email protected]> | 2018-11-28 17:13:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2018-11-28 17:13:24 +0100 |
commit | ef18745951873025ec7fc44bd6987c39c3bdd0d7 (patch) | |
tree | c6af192b469e6cf86ee00cb5d0ab4e03a98bacae /sway/commands/bind.c | |
parent | a22d0c0ff60469d57de733bb767333d5b222df2d (diff) | |
parent | e5f90f25d755b19151dfcfd98790c1bad3eb8068 (diff) |
Merge pull request #3202 from RedSoxFan/swaynag-config-warnings
Introduce a way to show config warnings in swaynag
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r-- | sway/commands/bind.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 34881b0f..9112815f 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -255,8 +255,12 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv, for (int i = 0; i < mode_bindings->length; ++i) { struct sway_binding *config_binding = mode_bindings->items[i]; if (binding_key_compare(binding, config_binding)) { - wlr_log(WLR_DEBUG, "overwriting old binding with command '%s'", - config_binding->command); + wlr_log(WLR_INFO, "Overwriting binding '%s' for device '%s' " + "from `%s` to `%s`", argv[0], binding->input, + binding->command, config_binding->command); + config_add_swaynag_warning("Overwriting binding '%s' for device " + "'%s' to `%s` from `%s`", argv[0], binding->input, + binding->command, config_binding->command); free_sway_binding(config_binding); mode_bindings->items[i] = binding; overwritten = true; |