|
Problem: umlauts are tricky every which way, and the solutions with kanata as well are finicky and don't work in every program. I've gone back to xmodmap method to provide umlauts. E.g. following configuration generates ö/Ö on Now, for some other functionality I'd like kanata also to bind a few Problem is when kanata is started with this config, it takes over right alt, and xmodmap config no longer works. Is there a way to have this cake and eat it too? |
Replies: 2 comments 2 replies
|
I'm no xmodmap expert so unsure if possible but sounds like you need to add a configuration so that xmodmap reads kanata evdev events as well as the other keyboard events. |
|
Looks like AltGr is swallowed. This is reported by xev with kanata: No Compared to when kanata is stopped: Note the distinct keycode 108 events for RAlt. Now, my next reflex is to hack around this problem. What we can do here is make kanata produce unused keycodes, and map those in xmodmap. E.g. $ xmodmap -pke
keycode 247 = XF86UWB NoSymbol XF86UWB
keycode 248 =
keycode 249 = XF86Next_VMode NoSymbol XF86Next_VModeshows ...and this to ~/.Xmodmap: It's hacky, but it works. Is that the way to go, or are there more elegant workarounds? |
That seems like a fine solution and seems like a convenient one compared to alternatives, see below.
The issue is that when you hold physical AltGr, it is a
(layer-toggle nav)which of course doesn't activate AltGr downstream.One thing you can do is make
@ab1beRA-;and repeat for all other AltGr combos that you need.You could also use something like:
This keeps AltGr held downstream while activating the
navlayer but this active AltGr may interfere with othernavlayer actions in a negative way. This could be worked around with a solution like:navlayer actions that don't want AltGr can use(multi (release-key ralt) @myact…