1 |
Thanks a lot! ØØØ :) |
2 |
|
3 |
Best regards, |
4 |
|
5 |
Wen |
6 |
|
7 |
-- |
8 |
Xianwen Chen |
9 |
|
10 |
|
11 |
|
12 |
On Wed, Jan 13, 2010 at 4:52 PM, Vincent Launchbury |
13 |
<vincent@×××××××××××××××.com> wrote: |
14 |
> Xianwen Chen wrote: |
15 |
>> I can't use the letter "ø" because this key doesn't exist on an en_US |
16 |
>> keyboard. |
17 |
>> |
18 |
>> To solve this problem, I want to modify the layout file, to set the |
19 |
>> "Windows" key to "ø". Does anyone know which file shall I touch? |
20 |
> |
21 |
> You might be able to use x11-apps/xmodmap. Grab x11-apps/xev to find out |
22 |
> the keycode, which is usually 115 for the windows key: |
23 |
> |
24 |
> Run xev and press the key, then watch for output like: |
25 |
> state 0x0, keycode 115, ... |
26 |
> |
27 |
> Then get the keysym for ø by doing: |
28 |
> $cat /usr/include/X11/keysymdef.h |grep -i oslash |
29 |
> #define XK_Oslash 0x00d8 /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */ |
30 |
> #define XK_oslash 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */ |
31 |
> |
32 |
> Then create ~/.Xmodmap, here's the relevant part of my file: |
33 |
> $cat ~/.Xmodmap |grep 115 |
34 |
> keycode 115 = 0x00f8 |
35 |
> |
36 |
> Then, the command: |
37 |
> $xmodmap ~/.Xmodmap |
38 |
> is required to make the changes, so just add it to your .xinitrc or the |
39 |
> startup file for whatever desktop environment you're running. |
40 |
> |
41 |
> This works fine for me in anything that supports unicode, although |
42 |
> strangely it doesn't work in xterm. |
43 |
> |
44 |
> Note that I'm not using dvorak, but I don't see that making a |
45 |
> difference. Good luck :). øøø! |
46 |
> |
47 |
> Kind Regards, |
48 |
> Vincent. |
49 |
> |
50 |
> |
51 |
> |