You are not logged in.

#1 2024-04-06 11:15:32

trewq
Member
Registered: 2024-03-07
Posts: 8

Right Alt mapped to ISO level3 Shift [SOLVED]

After upgrading to kde 6, I've started using wayland. For some reason in Wayland the right alt key is mapped to ISO level3 shift and I've tried several ways of mapping it to right alt but nothing seems to work.

Here is output from setxkbmap:

WARNING: Running setxkbmap against an Xwayland server
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)"    };
    xkb_types     { include "complete"    };
    xkb_compat    { include "complete"    };
    xkb_symbols   { include "pc+se+inet(evdev)"    };
    xkb_geometry  { include "pc(pc105)"    };
};
rules:      evdev
model:      pc105
layout:     se

localectl:

System Locale: LANG=en_US.UTF-8
    VC Keymap: sv-latin1
   X11 Layout: se

I want the right alt key to behave like the right alt key so i can use it with sticky keys. Basically in X11 Alt+1 with sticky keys enabled outputs "¡"  `!`   but in Wayland it just outputs 1, all the other buttons work with sticky keys expect the right alt key which I'm assuming it has something to do with the ISO level3 shift.

(I know there are other posts similar to this but none of them worked)

Edit: Alt+1 outputs "¡" and not "!".

Edit2: I used keyd and remapped right alt to AltGr.  https://github.com/rvaiya/keyd https://wiki.archlinux.org/title/Access … ticky_Keys

Last edited by trewq (2024-04-06 18:05:51)

Offline

#2 2024-04-06 16:03:09

seth
Member
Registered: 2012-09-03
Posts: 51,757

Re: Right Alt mapped to ISO level3 Shift [SOLVED]

se has

include "level3(ralt_switch)"

so no big surprise reg. the behavior.

use it with sticky keys. Basically in X11 Alt+1 with sticky keys enabled outputs `!` but in Wayland it just outputs 1

se include latin(type2) which has

key <AE01>	{ [         1,     exclam,   exclamdown,  onesuperior ]	};

so you've 1, !, ¡,¹ - "!" would be _SHIFT_+1, not Alt+1?
And that's also pretty much how sticky keys work, instead of pressing Shift+1 to get ! you press Shift,1

That being said, sticky keys are a feature of X11 or your https://wiki.archlinux.org/title/Input_method and it seems an open problem n the KDE wayland compositor:
https://bugs.kde.org/show_bug.cgi?id=444335
https://invent.kde.org/plasma/kwin/-/me … uests/3365

Offline

#3 2024-04-06 17:06:37

trewq
Member
Registered: 2024-03-07
Posts: 8

Re: Right Alt mapped to ISO level3 Shift [SOLVED]

Sorry. i meant that Alt, 1 outputs ¡ or Alt,2 outputs "@". Is there a way to get sticky keys to work on wayland? I'm not really sure what to do with the input_method page. 

Also, I'm not 100% sure if this is true or not. But yesterday i got sticky keys to work on my device, right alt was mapped to Right Alt and sticky keys worked fine however i was using the us layout if I'm not wrong.

Offline

#4 2024-04-06 18:04:20

trewq
Member
Registered: 2024-03-07
Posts: 8

Re: Right Alt mapped to ISO level3 Shift [SOLVED]

Okay, i wasn't able to remap right alt however i used keyd from: https://wiki.archlinux.org/title/Access … ticky_Keys to remap right alt to AltGr (i think that's what it is called). And now i have the Sticky keys in wayland big_smile

/etc/keyd/default.conf

[ids]
*

[main]

control = oneshot(control)
meta = oneshot(meta)
shift = oneshot(shift)
rightalt = oneshot(altgr)

Ig this kinda solves my problem.

Offline

Board footer

Powered by FluxBB