setxkbmap -option altwin:swap_alt_win
预定义的重新映射选项的列表在中/usr/share/X11/xkb/rules/evdev.lst
。在这种情况下,您可能想要
jinx:792 Z$ grep alt /usr/share/X11/xkb/rules/evdev.lst | grep win
altwin Alt/Win key behavior
altwin:menu Add the standard behavior to Menu key
altwin:meta_alt Alt and Meta are on Alt keys
altwin:ctrl_win Control is mapped to Win keys (and the usual Ctrl keys)
altwin:ctrl_alt_win Control is mapped to Alt keys, Alt is mapped to Win keys
altwin:meta_win Meta is mapped to Win keys
altwin:left_meta_win Meta is mapped to Left Win
altwin:hyper_win Hyper is mapped to Win-keys
altwin:alt_super_win Alt is mapped to Right Win, Super to Menu
altwin:swap_lalt_lwin Left Alt is swapped with Left Win
Windows键通常映射到X11的Super
修改器,而Menu键有时映射到其Hyper
修改器。