ctrl/caps_lock
XFree86
Have following line in /etc/X11/XF86Config
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
... (omitted) ...
# If you'd like to switch the positions of your capslock and
# control keys, use:
Option "XkbOptions" "ctrl:swapcaps"
... (omitted) ...
EndSection
RedHat
/etc/sysconfig/keyboard
KEYTABLE="jp106"
/lib/kbd/keymaps/i386/qwerty/jp106.map.gz
NetBSD
-
in /etc/wscons.conf, you put following line
encoding = jp.swapctrlcaps
encoding jp.swapctrlcaps
To enable this line on the fly, you may issue
sudo /etc/rc.d/wscons restart
-
in /etc/rc.conf, you may put
wscons=YES
NetBSD (old style)
cat /usr/share/wscons/keymaps/pckbd.capslock-ctrl
keycode 29=Mode_switch
keycode 58=Control_L
keycode 58=Cmd1 Control_L ?
tail -1 /etc/wscons.conf
mapfile /usr/share/wscons/keymaps/pckbd.capslock-ctrl
wsconsctl -w encoding=jp
FreeBSD
In the file /etc/rc.conf, just put following line, jp.106x is already there.
keymap="jp.106x"
# /usr/share/syscons/keymaps/jp.106x.kbd
/usr/share/syscons/keymaps:
http://www.bl.mmtr.or.jp/~rushani/freebsd/laptop/keyboard_console_us.html
ttyp2:makoto@lets 10:56:31/031228(...syscons/keymaps)> kbdcontrol -l /usr/share/syscons/keymaps/jp.106x.kbd
kbdcontrol: setting keymap: Inappropriate ioctl for device
|