-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config/bindings: Extend bindsym --to-code to additionally
handle the case in which a given keysym maps to more than one keycode. Sometimes, a keysym can map to duplicate keycodes and `libxkbcommon` does not prohibit this. In that case, it makes sense to find all the keycodes that map to the keysym. - Merges translate_binding into translate_keysyms, simplify logic - Changes add_matching_keycodes to find ALL keycodes, not just last - Removes unncessary list_t* syms. It's only used to alias keys as "syms". No other purpose. This commit also introduces a recursive cartesian product calculator in order to handle any cases. `bindsym --to-code (M + .. + N)` s.t. Keysym M maps to keycodes { M_0 .. M_m } ... Keysym N maps to keycodes { N_0 .. N_n } results in || M x .. x N || bindings (cartesian product)
- Loading branch information
Showing
3 changed files
with
112 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters