Results 1 to 6 of 6

Thread: How Do I Reprogram Keys?

  1. #1
    Join Date
    Jul 2005
    Location
    Remote Desert, USA
    Beans
    683

    How Do I Reprogram Keys?

    I have a special Euro key on the keyboard. When I click it, I get one of those setkeycodes messages in my /var/log/messages. What's the fastest way to reprogram this so that it draws this Euro symbol in my programs in GNOME (including Firefox)?
    SuperMike
    When in doubt, follow the penguins.
    Evil Kitty is watching you

  2. #2
    Join Date
    Dec 2007
    Beans
    222

    Re: How Do I Reprogram Keys?

    1) This works for Firefox.

    System--Preferences--Keyboard (Preferences)

    "Layout Options" tab, select "Adding the EuroSign...", check any suitable box.
    Then select "Third level choosers", check any suitable box.

    Now to generate € press these two keys.

    [edit:] Done a few tests.
    Works in Firefox, gVim, oowriter, oocalc, oobase, ooimpress, PDFedit.
    Doesn't work: gedit, subtitleeditor, tomboy.

    2) This works everywhere assuming the character is supported.

    System--Preferences--Keyboard (Preferences)

    "Layout Options" tab, select "Compose key position", check any suitable box.

    Press <Compose Key><e><=>

    [edit:] Done a few tests.
    Doesn't work in PDFedit.
    Last edited by pauper; July 24th, 2008 at 04:02 AM.
    Help yourself | [Hints] Disassemble your laptop

    "Si peccasse negamus, fallimur,
    Et nulla est in nobis veritas--"

  3. #3
    Join Date
    Feb 2008
    Location
    US
    Beans
    2,782
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How Do I Reprogram Keys?

    you can remap individual keys with xkeycaps.
    Code:
    sudo apt-get install xkeycaps
    Desktop: Q6600 OC: 343 x 9, 4 GB RAM, 8600 GTS Twinview (22",17"), 1.5 TB RAID 5
    Laptop: Lenovo T61 T7300 @ 2 GHz, 2GB RAM, Nvidia 140M Quadro, 160 GB harddrive
    Remember to mark posts as [SOLVED] when your problem is resolved

  4. #4
    Join Date
    Jul 2005
    Location
    Remote Desert, USA
    Beans
    683

    Re: How Do I Reprogram Keys?

    I found that when I chose US International keyboard with dead keys, set it as default, and rebooted, I could do the following:

    Right Alt = AltGr

    AltGr+5 = Euro
    AltGr+Shift+4 = British Pound
    AltGr+Dash = Yen

    I tried xkeycaps, but it doesn't want to notice the specialized Euro key on my Acer Extensa 4420 laptop. BTW, for anyone new to xkeycaps (I was), you have to rightclick a key to edit it and make it do something. But if that key doesn't even display, that's an entirely different story.
    SuperMike
    When in doubt, follow the penguins.
    Evil Kitty is watching you

  5. #5
    Join Date
    Jul 2005
    Location
    Remote Desert, USA
    Beans
    683

    Re: How Do I Reprogram Keys?

    Quote Originally Posted by tamoneya View Post
    you can remap individual keys with xkeycaps.
    Code:
    sudo apt-get install xkeycaps
    Wow, that program sucks. I found I could remap the key, but then it screwed up my ability to flip to different terminals.

    The fix was:

    $ sudo su
    # cd /home/<my username>
    # ne .xmodmaprc

    ne is my favorite command-line editor. You might use vi or joe instead.

    Once inside that file, I do this:

    keycode 116 = sterling

    Now when I type the right windows key, it makes a pound sterling symbol.
    Last edited by SuperMike; December 19th, 2008 at 03:17 AM.
    SuperMike
    When in doubt, follow the penguins.
    Evil Kitty is watching you

  6. #6
    Join Date
    Nov 2006
    Beans
    Hidden!

    Re: How Do I Reprogram Keys?

    Quote Originally Posted by SuperMike View Post
    I tried xkeycaps, but it doesn't want to notice the specialized Euro key on my Acer Extensa 4420 laptop.
    On my Acer Aspire 8930, the is a key with the Euro symbol and enother with just "$" and neither seem to generate a scan code according to xev, which suggests to me that they can't be remapped, unless a different keyboard driver/profile is used.

    I posted about this here:
    http://ubuntuforums.org/showthread.p...26#post6792826
    but no one offered up any suggestions.

    -Tom

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •