Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Req: add 'default' catchall to remappings #29

Open
mmazur opened this issue Oct 15, 2020 · 0 comments
Open

Req: add 'default' catchall to remappings #29

mmazur opened this issue Oct 15, 2020 · 0 comments

Comments

@mmazur
Copy link

mmazur commented Oct 15, 2020

I've seen discussions where people mention that using remappings disables a given modifier key for any use outside evdevremapkeys.
A simple and elegant solution to this would give the option of defining a default catchall that would be applied any time an explicit key combo is not defined. Proposed syntax:

  modifier_groups:
    caps:
      KEY_H:
      - KEY_LEFT
      KEY_J:
      - KEY_DOWN
      KEY_K:
      - KEY_UP
      KEY_L:
      - KEY_RIGHT
      default:
      - KEY_LEFTMETA
      - KEY

Additions:

  • default – execute whenever the modifier was not used with an explicitly defined key
  • KEY – resend the key pressed

With the example presented above caps+hjkl works as vim–like navigation everywhere, while on a typical desktop environment e.g. caps+d would be "show desktop" and any other caps+KEY would be easily boundable via your desktop environment or something like xbindkeys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant