* [gentoo-user] Modify keymap
@ 2010-01-13 12:21 Xianwen Chen
2010-01-13 15:52 ` Vincent Launchbury
0 siblings, 1 reply; 3+ messages in thread
From: Xianwen Chen @ 2010-01-13 12:21 UTC (permalink / raw
To: gentoo-user
Hi list,
I'm using a en_US keyboard. When I use
setxkbmap -layout no -variant dvorak
to set the keyboard layout to Norwegian Dvorak, I can't use the letter
"ø" because this key doesn't exist on an en_US keyboard.
To solve this problem, I want to modify the layout file, to set the
"Windows" key to "ø". Does anyone know which file shall I touch?
Best regards,
Wen
--
Xianwen Chen
Sent from Tromso, 19, Norway
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Modify keymap
2010-01-13 12:21 [gentoo-user] Modify keymap Xianwen Chen
@ 2010-01-13 15:52 ` Vincent Launchbury
2010-01-13 16:48 ` Xianwen Chen
0 siblings, 1 reply; 3+ messages in thread
From: Vincent Launchbury @ 2010-01-13 15:52 UTC (permalink / raw
To: gentoo-user
Xianwen Chen wrote:
> I can't use the letter "ø" because this key doesn't exist on an en_US
> keyboard.
>
> To solve this problem, I want to modify the layout file, to set the
> "Windows" key to "ø". Does anyone know which file shall I touch?
You might be able to use x11-apps/xmodmap. Grab x11-apps/xev to find out
the keycode, which is usually 115 for the windows key:
Run xev and press the key, then watch for output like:
state 0x0, keycode 115, ...
Then get the keysym for ø by doing:
$cat /usr/include/X11/keysymdef.h |grep -i oslash
#define XK_Oslash 0x00d8 /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */
#define XK_oslash 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */
Then create ~/.Xmodmap, here's the relevant part of my file:
$cat ~/.Xmodmap |grep 115
keycode 115 = 0x00f8
Then, the command:
$xmodmap ~/.Xmodmap
is required to make the changes, so just add it to your .xinitrc or the
startup file for whatever desktop environment you're running.
This works fine for me in anything that supports unicode, although
strangely it doesn't work in xterm.
Note that I'm not using dvorak, but I don't see that making a
difference. Good luck :). øøø!
Kind Regards,
Vincent.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Modify keymap
2010-01-13 15:52 ` Vincent Launchbury
@ 2010-01-13 16:48 ` Xianwen Chen
0 siblings, 0 replies; 3+ messages in thread
From: Xianwen Chen @ 2010-01-13 16:48 UTC (permalink / raw
To: gentoo-user
Thanks a lot! ØØØ :)
Best regards,
Wen
--
Xianwen Chen
On Wed, Jan 13, 2010 at 4:52 PM, Vincent Launchbury
<vincent@doublecreations.com> wrote:
> Xianwen Chen wrote:
>> I can't use the letter "ø" because this key doesn't exist on an en_US
>> keyboard.
>>
>> To solve this problem, I want to modify the layout file, to set the
>> "Windows" key to "ø". Does anyone know which file shall I touch?
>
> You might be able to use x11-apps/xmodmap. Grab x11-apps/xev to find out
> the keycode, which is usually 115 for the windows key:
>
> Run xev and press the key, then watch for output like:
> state 0x0, keycode 115, ...
>
> Then get the keysym for ø by doing:
> $cat /usr/include/X11/keysymdef.h |grep -i oslash
> #define XK_Oslash 0x00d8 /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */
> #define XK_oslash 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */
>
> Then create ~/.Xmodmap, here's the relevant part of my file:
> $cat ~/.Xmodmap |grep 115
> keycode 115 = 0x00f8
>
> Then, the command:
> $xmodmap ~/.Xmodmap
> is required to make the changes, so just add it to your .xinitrc or the
> startup file for whatever desktop environment you're running.
>
> This works fine for me in anything that supports unicode, although
> strangely it doesn't work in xterm.
>
> Note that I'm not using dvorak, but I don't see that making a
> difference. Good luck :). øøø!
>
> Kind Regards,
> Vincent.
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-13 16:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 12:21 [gentoo-user] Modify keymap Xianwen Chen
2010-01-13 15:52 ` Vincent Launchbury
2010-01-13 16:48 ` Xianwen Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox