You are not logged in.
At work I am using mostly a Mac, and I got very used to the modifier keys as specified in the Apple keyboard layout.
So much used, that I now can't use my PC laptop anymore and I constantly glitch on Alt+[Z/X/C/V/S/A] while trying to press the Cmd+[Z/X/C/V/S/A] combos.
Also, I find it much more ergonomic than the PC-style CTRL+[key] combos, much easier to press.
Does anyone know how to remap the keyboard modifier keys to match the Apple ones?
My PC is a Sony Vaio laptop, running the latest Arch and Gnome packages.
I am mostly interested into the left-side modifiers, but right side ones would be welcome as well.
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thank you for the link, but xmodmap is meant for Xorg based environments.
In Gnome, the graphical environment uses Wayland where device input is handled by libinput, not Xorg. making changes to Xorg config files will not have effect in Wayland.
Offline
You could also use the xkb "ctrl:swap_lalt_lctl" option.
There'd more options,
grep ctrl /usr/share/X11/xkb/rules/base.lst | grep altOffline
Thanks, seth! While looking about xkb I have found out that gnome-tweaks has just this! In this tool, go to: Keyboard & Mouse > Additional Layout Options. This presents a lot of configurations for remapping modifiers. What worked for me was under the section "Ctrl position", the option "Left Alt as Ctrl, Left Ctrl as Win, Left Win as Alt".
Also, typing the grep command above lists an entry:
ctrl:swap_lalt_lctl_lwin Left Alt as Ctrl, Left Ctrl as Win, Left Win as Left Alt
which seems just what I did under gnome-tweaks.
I am still trying to figure out how to remap right side modifiers, to swap Ctrl and Alt. gnome-tweaks doesn't seem to have just that, and other options are limited to a single swap...
Offline