[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making keyboard remap changes permanent without reboot.



Alexandros Prekates <aprekates@openmailbox.org> writes:

> My system is Debian stable with xfce.
>
> Wanting to swap CAPSLOCK with CONTROL i changed /etc/default/keyboard
> and following debian wiki page on keyboard i executed:
>
> sudo udevadm trigger --subsystem-match=input --action=change
>
> It worked! But .. after some minutes the swap is reverted back to the 
> initial config withoud doing sth.
>
> How can that be avoided?


,---- [ /etc/X11/xorg.conf ]
|
| Section "InputDevice"
|     Identifier     "Keyboard0"
|     Driver         "kbd"
|     Option         "XKBOptions" "ctrl:nocaps"
| #    Option         "XkbModel" "pc105"
|     Option         "XkbModel" "pc102"
|     Option         "XkbLayout" "de"
| EndSection
`----


Make sure you adjust to your particular keyboard, and you *must* have
set up the keyboard for the console correctly.  When you cannot switch
with Ctrl+Alt+Fn to the console, that may be an indication that your
keyboard is not set up correctly to begin with (switching can be
disabled by config and usually isn't by default).


,---- [ ~/.Xmodmap ]
|
| keycode  66 = Control_L Control_L Control_L Control_L
`----


Look at 'xmodmap -pk', use 'xev' to get the keycodes and you can set it
up as you like.


-- 
Knowledge is volatile and fluid.  Software is power.


Reply to: