1 |
On Sunday 04 Jan 2015 19:53:37 lee wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I'm trying to use the CapsLock key as control key. With 'setxkbmap |
5 |
> -option ctrl:nocaps' that works --- until I use 'xmodmap' to load my |
6 |
> keymap. Once the keymap is loaded, the CapsLock key again works as |
7 |
> CapsLock and not as control. |
8 |
> |
9 |
> This worked fine with other distributions. Is there anything special to |
10 |
> Gentoo which breaks this? |
11 |
> |
12 |
> |
13 |
> Section "InputClass" |
14 |
> Identifier "keyboard-all" |
15 |
> Driver "evdev" |
16 |
> Option "XkbLayout" "de" |
17 |
> Option "XkbModel" "pc105" |
18 |
> Option "XkbRules" "xorg" |
19 |
> Option "XkbOptions" "ctrl:nocaps,terminate:ctrl_alt_bksp" |
20 |
> MatchIsKeyboard "on" |
21 |
> EndSection |
22 |
|
23 |
What happens if you remove "ctrl:nocaps" above? |
24 |
|
25 |
|
26 |
> ~/.xinitrc: |
27 |
> [...] |
28 |
> setxkbmap -option ctrl:nocaps |
29 |
> xmodmap ~/.Xmodmap |
30 |
> [...] |
31 |
> |
32 |
> |
33 |
> ~/.Xmodmap: |
34 |
> [...] |
35 |
> keycode 37 = Control_L NoSymbol Control_L |
36 |
> [...] |
37 |
|
38 |
and why do you need to specify this in .Xmodap? |
39 |
|
40 |
-- |
41 |
Regards, |
42 |
Mick |