mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
bind{code,sym}: utilize mouse button helpers
This modifies `bindcode` and `bindsym` to use `get_mouse_bindcode` and `get_mouse_bindsym`, respectively, to parse mouse buttons. Additionally, the `BINDING_MOUSE` type has been split into `BINDING_MOUSECODE` and `BINDING_MOUSESYM` to match keys and allow for mouse bindcodes to be used. Between the two commands, all button syms and codes should be supported, including x11 axis buttons.
This commit is contained in:
parent
6f6a9af60e
commit
eefa6b1ad3
4 changed files with 86 additions and 57 deletions
|
|
@ -302,7 +302,7 @@ runtime.
|
|||
```
|
||||
|
||||
*bindcode* [--release|--locked] [--input-device=<device>] [--no-warn] <code> <command>
|
||||
is also available for binding with key codes instead of key names.
|
||||
is also available for binding with key/button codes instead of key/button names.
|
||||
|
||||
*client.<class>* <border> <background> <text> <indicator> <child\_border>
|
||||
Configures the color of window borders and title bars. All 5 colors are
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue