You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This syntax works great with 1:1. The issue I'm having is with 1:N, where the goal is to generate a key combination involving at least one modifier. I'd like to be able to specify arg1 and arg2 that would apply to all remappings.
The way I've hacked it for testing purposes is that I've added code that checks the first remapping and if it finds an argument, it treats it as applying to everything. [code snippet at the end]
But I'd really like there to be a set syntax for "this applies to all N keys in the remapping".
I was thinking something along the lines of the parses detecting whether a key remapping is a list or a dict. If it's a dict, it'd work something like:
@philipl would a patch adding such "global" settings be a thing you'd be open to?
And for context, this is the approach I'm currently testing for making remappings involving modifiers keys less prone to getting wedged (I'm using a bunch KEY_LEFTMETA+KEY and end up with xorg thinking that LEFTMETA is permanently down like a lot of the times).
When remapping a key 1:1, any additional modifications can be applied to the target key, like so:
This syntax works great with 1:1. The issue I'm having is with 1:N, where the goal is to generate a key combination involving at least one modifier. I'd like to be able to specify
arg1
andarg2
that would apply to all remappings.The way I've hacked it for testing purposes is that I've added code that checks the first remapping and if it finds an argument, it treats it as applying to everything. [code snippet at the end]
But I'd really like there to be a set syntax for "this applies to all N keys in the remapping".
I was thinking something along the lines of the parses detecting whether a key remapping is a list or a dict. If it's a dict, it'd work something like:
@philipl would a patch adding such "global" settings be a thing you'd be open to?
And for context, this is the approach I'm currently testing for making remappings involving modifiers keys less prone to getting wedged (I'm using a bunch KEY_LEFTMETA+KEY and end up with xorg thinking that LEFTMETA is permanently down like a lot of the times).
The text was updated successfully, but these errors were encountered: