"Replace Caps key with Ctrl key" and "Swap left Alt key and left Ctrl key" have the following options predefined, so you can use them.
Specify the above option when executing "set xkbmap"
$ setxkbmap -option "ctrl:nocaps" -option "ctrl:swap_lalt_lctl"
Check with set xkbmap -print
to see if the settings have been made (xkb_symbols)
$ setxkbmap -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
★xkb_ctrl specified in symbols(nocaps)And ctrl(swap_lalt_lctl)Can be confirmed that has been added
xkb_symbols { include "pc+us+us:2+inet(evdev)+ctrl(nocaps)+ctrl(swap_lalt_lctl)" };
xkb_geometry { include "pc(pc105)" };
};
Launch "gnome-session-properties" and press "Add" to add "set xkbmap -option" ctrl: nocaps "-option" ctrl: swap_lalt_lctl ""
In recent Raspbian, ~ / .config / lxsession / LXDE-pi / autostart
which was based on LXDE cannot be used, so write it in a shell script, register it as a service in systemd, and execute it.
Replacing the Ctrl key with the Caps key was realized by specifying "ctrl: nocaps" in XKBOPTIONS of / etc / default / keyboard
, but when multiple options are specified, only the first one is valid. Did not
The setxkbmapsetting items are placed as files in
/ usr / share / X11 / xkb / symbols /
Definition of option items of ctrl and their contents are written in / usr / share / X11 / xkb / symbols / in setxkbmap / ctrl
.
If you want to set other than the existing options, you can rewrite here.
It is just an individual impression.