From 8ee054b1b95b7466c0dd89bfc9026f4083fb0016 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Fri, 26 Jul 2019 12:02:18 -0400 Subject: bindsym/code: add group support This adds support for specifying a binding for a specific group. Any binding without a group listed will be available in all groups. The priority for matching bindings is as follows: input device, group, and locked state. For full compatibility with i3, this also adds Mode_switch as an alias for Group2. Since i3 only supports this for backwards compatibility with older versions of i3, it is implemented here, but not documented. --- include/sway/config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sway/config.h') diff --git a/include/sway/config.h b/include/sway/config.h index f1426453..c65d9353 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -53,6 +53,7 @@ struct sway_binding { list_t *keys; // sorted in ascending order list_t *syms; // sorted in ascending order; NULL if BINDING_CODE is not set uint32_t modifiers; + xkb_layout_index_t group; char *command; }; -- cgit v1.2.3-54-g00ecf