I used to have a Mac keyboard connected to my Ubuntu PC laptop and therefore I switched the Alt and Win keys to match with a regular PC keyboard. I'm not using this keyboard any longer, but I cannot figure out where this change was made.
/etc/default/keyboard:
XKBLAYOUT="us,us"
BACKSPACE="guess"
XKBVARIANT=",intl"
XKBMODEL="pc105"
XKBOPTIONS="grp_led:scroll"
There is no ~/.Xmodmap file
/usr/share/X11/xkb/symbols/pc isn't changed (according to this)
Gnome System -> Preferences -> Keyboard shows Layout default for all options
hid_apple module isn't loaded
I used to be able to switch back to "PC" mode by issuing the following command, but it's not working on Ubuntu 21.10 anymore. I've just upgraded from Ubuntu 20.04:
setxkbmap -option altwin:swap_lalt_lwin
Where else should I look at?
EDIT:
gsettings get org.gnome.desktop.input-sources xkb-options
['altwin:swap_lalt_lwin']
gsettings get org.gnome.desktop.input-sources xkb-options
– Gunnar Hjalmarsson May 01 '22 at 19:44gsetting reset org.gnome.desktop.input-sources xkb-options
enough to restore the original layout? – Raisen May 01 '22 at 20:13