-
Notifications
You must be signed in to change notification settings - Fork 328
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
Emitting Hyper_L #22
Comments
Yeah, this is another example of that difference between linux kernel key events and X11 key events. X11 takes the linux-kernel events and maps them onto its own version of key-events, but this is completely out of scope for I'm going to close this issue, since there is nothing I can do about it in |
Actually, here's a bit of documentation about how to map linux key events to X11 key events to get a hyper-key to register: https://wiki.archlinux.org/index.php/Xmodmap#Turn_CapsLock_into_Control,_and_LeftControl_into_Hyper |
@david-janssen An example or some docs on how to get a key to double as hyper and a standardd key with kmonad would be great. I can't figure it out. |
Hey Divan, So, the issue is that HyperL is not a linux-key at all, it is a special key that gets supported by X11. KMonad doesn't stray at all into X11 territory, this way we can function independently. Therefore, to make HyperL work you will need to do 2 things: Map a key in KMonad to emit some linux keycode, The easiest way to do that, I guess, would be to figure out exactly what key you are using right now to trigger An additional source of confusion is that the keycodes used by
Then you can see that they map 37 ('Control_L') to 'Hyper_L', and 66 ('CapsLock') to 'Control_L'. So basically, to repeat: figure out which intermediate button you want to use, then make sure your kmonad config emits that keycode in the way you want it to (i.e. which layer, tap-hold combo etc.), and also make sure that X11 knows that that key should be 'HyperL'. Sorry, it's hard to explain this stuff in text without being confusing. Hope I managed to clarify things? I think the idea of writing some documentation explaining this is a good idea, so I am reopening this issue. |
@david-janssen Brilliant. Thanks for the detailed quick reply. Let me have a look at it and will revert. |
Entered into faq in: fecdb82 Closing. |
Hmm, it seems that the super key is not listed in |
If you use emacs, the manual says that you can enter So, this setup worked for me:
and just assign |
Xmodmap has support for the historic
Hyper
key (archwiki source):Which seems to have keycode
0xcf
. Sxhkd has support for catchingHyper
as one of the modifiers.However neither keycode nor symbol can be found in linux/input-event-codes.h.
More generally, maybe aliasing a keycode directly could serve as a workaround for similar cases.
The text was updated successfully, but these errors were encountered: