3 ms·
It's not a very good cheat sheet. I recommend something like https://emacswiki.org./emacs/MovingTheCtrlKey https://emacswiki.org./emacs/MovingTheCtrlKey instea
by JdeBP 10y ago
It's not a very good cheat sheet. I recommend something like https://emacswiki.org./emacs/MovingTheCtrlKey https://emacswiki.org./emacs/MovingTheCtrlKey instead. Whilst that has its share of problems, such as getting Linux and NetBSD mixed up, it's better.
It's actually a bad idea to stick a loadkeys command in /etc/rc.local, since that's a system that van Smoorenburg rc itself superseded, back in the 1990s. It's between 2 and 4 init/rc system overhauls in the past, at this point. It also has no guaranteed ordering relative to native mechanisms; and on many systems there are native services that configure the kernel's terminal emulator.
And /etc/rc.conf.local is a configuration settings file that largely hasn't been around on Linux operating systems since those pre-van Smoorenburg rc days. (BSDs retain /etc/rc.conf.local . Some of them actually have a strict rule about not putting anything other than a map of name=value settings in there, though.)
On Linux operating systems, the kernel's terminal emulator's configuration hasn't been done by explicitly writing a loadkeys command for almost as long.
* /etc/default/keyboard has been the Debian mechanism since roughly the turn of the century, and one has to work out what XKBLAYOUT, XKBVARIANT, and XKBOPTIONS combination means "swap capslock and control". The Debian people designed it to do both the kernel's terminal emulator and X11 in one. So one probably uses XKBOPTIONS='ctrl:swapcaps' and ignores what you wrote about X11 entirely. (-:
* The vanilla systemd mechanism is /etc/vconsole.conf , which doesn't have the internally complex Debian approach of trying to have the kernel terminal emulator and X11 configured in lockstep, and the variable to change is named KEYMAP .
On FreeBSD/PC-BSD one just sets the keymap variable in /etc/rc.conf . Out of the box, FreeBSD/PC-BSD only comes with a few keymaps that swap capslock and control, and their names aren't regular. So one will have keymap="uk.iso-ctrl" but also keymap="bg.bds.ctrlcaps" .
The nosh user-space terminal emulator uses FreeBSD/PC-BSD keymaps. But it supports overlaid keymaps. Using an overlay, the configuration import subsystem makes both a vanilla (.kbdmap) and a swap-capslock-and-control (.capsctrl.kbdmap) compiled keyboard map from each of the FreeBSD/PC-BSD keymap source files.
- groovy2shoes 10y agoThanks for the info! You're definitely right about rc.local -- I mostly mentioned it as sort of the "greatest common denominator" of boot-time config across Linux distributions. Systemd notwithstanding, every distribution has (had?) its own method of setting the vtty keymap. I didn't know that about Debian's config, though -- that's really neat, and imho how such config should be done (though I'm a Slacker myself). A couple of the more "BSD-ish" distributions do have an rc.conf.local (CRUX comes to mind, and iirc Arch had one in the pre-systemd days). Slackware, at least, still has an rc.local, and it's always the last step in multiuser boot (init 3, or just before the display manager is launched in init 4). Thanks for the FreeBSD info, as well. Unfortunately, my (admittedly ancient) HDD crashed in my FreeBSD box recently (relatedly, if you know where I can find some big-ass IDE/PATA HDDs, I'm on the market... seems like NewEgg doesn't even sell IDE drives anymore, and Amazon's selection is rather shit). nosh sounds really cool. How have I not heard of this before?! Anyway, thanks for the learning :)