While I was doing the Ubuntu 20.04-->22.04 system upgrade, I accidentally set my Super key as the one for changing keyboard layout. Now it is in conflict with every other shortcut containing Super and despite searching for a solution for a couple of hours, I did not find any ways to change it back.
/etc/default/keyboard
file:
XKBLAYOUT="hu,gb,fr,ru,rs,gr,se"
XKBVARIANT=",,azerty,legacy,alternatequotes,polytonic,"
BACKSPACE="guess"
XKBMODEL="pc105"
XKBOPTIONS="grp:lwin_toggle,grp_led:scroll"
When I check it by xev
it prints out this (I normally use Ctrl+Space to change keyboard layout and it prints out a very similar thing):
FocusOut event, serial 37, synthetic NO, window 0x4600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x4600001,
mode NotifyUngrab, detail NotifyNonlinear
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 127 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
KeyRelease event, serial 37, synthetic NO, window 0x4600001,
root 0x792, subw 0x0, time 27670707, (786,460), root:(898,562),
state 0x4010, keycode 133 (keysym 0xfe08, ISO_Next_Group), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
ClientMessage event, serial 37, synthetic YES, window 0x4600001,
message_type 0x171 (WM_PROTOCOLS), format 32, message 0x16f (WM_DELETE_WINDOW)
EDIT:
After sudo dpkg-reconfigure keyboard-configuration
my /etc/default/keyboard
file is this:
XKBLAYOUT="hu"
XKBVARIANT=""
BACKSPACE="guess"
XKBMODEL="pc105"
XKBOPTIONS=""
Now my AltGr functions like an Alt.
Command gsettings get org.gnome.desktop.input-sources xkb-options
:
['grp:lwin_toggle', 'grp_led:scroll', 'lv3:ralt_alt', 'compose:menu']