Semi-OT: Perl keymap in X

Discussion in 'Perl Misc' started by Brent Royal-Gordon, Jun 24, 2005.

  1. I'm getting settled into a desktop Linux installation after spending
    most of my life running Windows. (Yay for escaping the monopoly.) One
    thing that I'm having trouble working out is key remapping. On my
    Windows configuration, I had put together and installed a custom keymap
    which turned the top-row number keys on my US QWERTY keyboard into the
    corresponding punctuation characters (i.e. pressing "1" without shifting
    gives "!", 2 without shifting gives "@", etc.). This is actually an
    amazing help when writing Perl, because all those dollars and ats and
    percents and comments don't require use of the shift key.

    However, I can't figure out how to do the equivalent in X Windows. I
    know that it's less involved than Windows--I just don't know how to do
    it. Can anyone help me, or at least point me to the appropriate docs?
    If it's important, I'm running Ubuntu Linux, which uses Gnome 2.10 and
    X.org 6.8. At this point, I'm using Eclipse with EPIC for development,
    although if anyone knows of a better tool (not vim or emacs, something
    that'll make a Visual Studio/Visual Perl user feel welcome), feel free
    to drop me an e-mail.

    --Brent 'Dax' Royal-Gordon <brent at brentdax dot com>
    Perl and Parrot hacker
     
    Brent Royal-Gordon, Jun 24, 2005
    #1
    1. Advertising

  2. Brent Royal-Gordon

    Anno Siegel Guest

    Brent Royal-Gordon <> wrote in comp.lang.perl.misc:
    > I'm getting settled into a desktop Linux installation after spending
    > most of my life running Windows. (Yay for escaping the monopoly.) One
    > thing that I'm having trouble working out is key remapping. On my
    > Windows configuration, I had put together and installed a custom keymap
    > which turned the top-row number keys on my US QWERTY keyboard into the
    > corresponding punctuation characters (i.e. pressing "1" without shifting
    > gives "!", 2 without shifting gives "@", etc.). This is actually an
    > amazing help when writing Perl, because all those dollars and ats and
    > percents and comments don't require use of the shift key.
    >
    > However, I can't figure out how to do the equivalent in X Windows. I
    > know that it's less involved than Windows--I just don't know how to do
    > it. Can anyone help me, or at least point me to the appropriate docs?


    That's done with xmodmap. Also look at xev in case you need to
    determine what key generates what key code. You will eventually
    end up with an .Xmodmap resource file in your home directory that
    describes your key mapping.

    Anno
     
    Anno Siegel, Jun 24, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RFQ=?=
    Replies:
    1
    Views:
    1,803
    Brock Allen
    Apr 4, 2005
  2. Mark
    Replies:
    0
    Views:
    413
  3. tk
    Replies:
    1
    Views:
    353
    Andrew Hobbs
    Aug 5, 2003
  4. James Stroud

    py2app semi-standalone semi-works

    James Stroud, Oct 4, 2006, in forum: Python
    Replies:
    2
    Views:
    737
    James Stroud
    Oct 4, 2006
  5. sf-newsgroup
    Replies:
    1
    Views:
    1,727
    David Solimano
    Feb 12, 2012
Loading...

Share This Page