X Window System で ctrl caps 入れ替え
備忘録です。
X のバージョンは
Xorg -version
X Window System Version 7.1.1
です。
/etc/X11/xorg.conf の"InputDevice"セクションに
Option "XkbOptions" "ctrl:swapcaps"
を追加します。
こんな感じ。
Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "jp106" Option "XkbLayout" "jp" Option "XkbOptions" "ctrl:swapcaps" EndSection
ちゃんと設定できていれば、Xを再起動するとCtrlとCapsが入れ替わります。