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
I've got someone asking how to implement a Hyper key modifier with keyszer. I know you talked about having a Hyper key in your configuration. Would you mind spilling the secrets on how you did that? Did you modify modifier.py or implement it entirely within your config file?
One catch is that they want the Hyper key to become a combination of Ctrl+Alt+Super (leaving Shift out for optional further combinations). If I understand the current code for modmapping in keyszer, it only supports changing one key into another single key. So what does your Hyper modifier actually send out from the virtual keyboard, and how do you make that do useful things?
The text was updated successfully, but these errors were encountered:
The part that confuses me most is F24 (the key I'm reusing) is 194 to the kernel (and key.py BUT xmodmap seems to assign it keycode 202 (confirmed by using xev_... There seems to be this offset in what both are calling the "keycode" for a lot of keys that I don't understand.
I think this is the offset (+8) between the kernel value and the evdev key value that is actually defined in keymaps. As in the real keymaps that the input system uses to translate the raw key codes into evdev values and then symbols according to the chosen keyboard layout. I ran into that offset when attempting to dump keymaps (with xkbcommon) and match the key codes to symbols, while I was investigating the possibility of getting the keymapper to work better with non-US keyboard layouts.
So you're using .Xmodmap as part of your setup, to just be able to refer to it as "Hyper_L" in your WM config more conventiently, I guess. I suppose you haven't tried to step into the Wayland space yet.
I was trying to use F19 instead of F24, because it's been useful for other purposes, due to nothing generally being assigned to it naturally. I've only been able to get the resulting Hyper modifier working from a modmap(), but it won't work from a multipurpose_modmap(). The user wants it to be on CapsLock, with Escape as the "tapped" key, and Hyper as the "held" key.
Well, actually I just figured something out, but I didn't think the multi-modmaps worked like this. If I set the multipurpose timeout to something shorter like 0.15 seconds, I can reasonably "tap" and use the key as a "held" modifier. I thought the "held" part was supposed to activate when the key is combined with another key, even if the timeout hasn't elapsed yet.
@joshgoebel
I've got someone asking how to implement a Hyper key modifier with
keyszer
. I know you talked about having a Hyper key in your configuration. Would you mind spilling the secrets on how you did that? Did you modifymodifier.py
or implement it entirely within your config file?One catch is that they want the Hyper key to become a combination of Ctrl+Alt+Super (leaving Shift out for optional further combinations). If I understand the current code for modmapping in
keyszer
, it only supports changing one key into another single key. So what does your Hyper modifier actually send out from the virtual keyboard, and how do you make that do useful things?The text was updated successfully, but these errors were encountered: