-
Notifications
You must be signed in to change notification settings - Fork 231
Description
Is your feature request related to a problem? Please describe.
If you have this global override:
(defoverrides
(lalt f1) (lalt f2)
)
It will trigger on Alt+F1, but it will also trigger on Alt+Shift+F1. Most times this is what you want. Other times it would be nice to have a way to require an override to only trigger if the exact mods specified are active.
Describe the solution you'd like.
New syntax for mods that must not be active. An example:
(defoverrides
(-lmet -lsft lalt f1) (lalt f2)
)
Ideally the shorthand for "any side" would work too. (-met instead of -lmet -rmet)
Alternatively, an exact keyword could also be considered. This would be less flexible than the above, however.
(defoverrides
(exact lalt f1) (lalt f2)
)
Describe alternatives you've considered.
This functionality can be achieved for some use-cases currently by specifying all of the alternat modifications as non-changing overrides.
(defoverrides
(lalt f1) (lalt f2)
(lalt lsft f1) (lalt lsft f1)
(lalt lmet f1) (lalt lmet f1)
(lalt lctl f1) (lalt lctl f1)
)
This is a bit more verbose, and I'm not sure if this has any performance implications, but it does seem like a valid workaround.
Additional context
No response