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

Add subcommand that prints the key code for a key on press #7

Closed
jabcross opened this issue Feb 9, 2022 · 0 comments
Closed

Add subcommand that prints the key code for a key on press #7

jabcross opened this issue Feb 9, 2022 · 0 comments

Comments

@jabcross
Copy link

jabcross commented Feb 9, 2022

A cursory Google search hasn't shown an easy way to translate scancodes or X keycodes (obtained from xev running under XWayland) to the keycode string that the config expects. I've been tryong to remap the (<>) key (left of Z on my Model M 122) to Super. A simple command that just prints the pressed keycode to stdout until EOF would be very appreciated.


Edit: Further searching shows that the evtest program already implements this. Leaving this here for anyone searching for the solution in the future, close the issue if you'd like.

The key code was the very descriptive KEY_102ND, if you're curious.

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

Successfully merging a pull request may close this issue.

1 participant