-
Notifications
You must be signed in to change notification settings - Fork 125
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
Map a key to a specific real mod ONLY for the currently active layout #511
Comments
Could you dump the whole keymaps and add case 1 here, then add the diff between the remaining cases, so we have all data to check this? See: |
I did the dump and investigated but the result does not show what happens to me. xkbcli compile-keymap gives the output for one layout but the problem appears when input-sources are merged on Ubuntu (french defined as group 1 and "personal" defined as group 2). I have found a workaround for my need in the meantime using kmonad so I'm good. I don't want to waste your time on this, I close the issue. |
You can pass 2 layouts by separating them with a comma, e.g.: xkbcli compile-keymap --layout fr,custom |
I did it. The problem was coming from me. I was messing up the compat files. About case 3 though I'm wondering what's happening. For the sake of example: and the output from :
Am I doing something wrong? |
I get the same result with You should probably use |
This is actually part of the XKB protocol: “Explicit Keyboard Mapping Components](https://www.x.org/releases/current/doc/kbproto/xkbproto.html#Explicit_Keyboard_Mapping_Components)”. But I think we should actually set a flag per group and use it to check whether to apply interprets or not to each group. |
Ok I see. |
Hi I'm on Ubuntu 22.04 Wayland,learning how to create my personal keyboard layout.
I have a question on a behavior that I don't understand.
I have 2 active layouts : French and "personal".
I want to map <LALT> to mod3 in the personal layout ONLY (do not impact other layouts).
I have tested these options but none of them match the need:
case 1 : key <LALT> { ISO_Level5_Shift };
it applies to all layouts. Not good.
case 2: key <LALT> { F23 };
I use a compat interpret statement to map F23 to Mod3.
Here it works but the ubuntu terminal writes a tilde every time <LALT> is pushed due to not recognizing the F23 keysym.
case 3: LALT to NoSymbol (suprising result)
Suprising for me the behavior of LALT on the french layout is disabled, as shown by xkbcomp $DISPLAY :
Case 3 would be the best solution but I don't understand why it disables the action in the french layout.
Would you have a solution please?
The text was updated successfully, but these errors were encountered: