diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-26 12:02:18 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-08-01 18:54:58 +0300 |
commit | 8ee054b1b95b7466c0dd89bfc9026f4083fb0016 (patch) | |
tree | bce2d4bfba93e6889c1aa57085297e4a997af2d8 /include/sway | |
parent | 14562fdbeed99e8d608de3dc46f1e04407e9258f (diff) |
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.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; |