public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Xianwen Chen <xianwen.chen@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Modify keymap
Date: Wed, 13 Jan 2010 17:48:40 +0100	[thread overview]
Message-ID: <9c74dfeb1001130848h6a08090cx9ede197d96e54823@mail.gmail.com> (raw)
In-Reply-To: <4B4DEC21.4090209@doublecreations.com>

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.
>
>
>



      reply	other threads:[~2010-01-13 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9c74dfeb1001130848h6a08090cx9ede197d96e54823@mail.gmail.com \
    --to=xianwen.chen@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox