Discussion:
key mapping under X
(too old to reply)
Berk Birand
2004-04-04 15:42:09 UTC
Permalink
Hi,

I am the original poster of the thread "Pipe as argument". First, I'd like
to thank Web Surfer, Urs Thuermann and Johannes Kloos for their answers.
AFAIK the backticks run the command in a subshell and returns the result
right?

Anyway while trying to do that, I noticed that some keys didn't work as
expected under X. The key-combination that is supposed to produce the
backtick prints | . It works flawlessly in console.
I tried doing
xmodmap -e "keycode 51 = backtick"

but got the error
xmodmap: commandline:0: bad keysym name 'backtick' in keysym list
xmodmap: 1 error encountered, aborting.

What is the identifier for the backtick character? Also what should I do
to make sure this mapping is done everytime my OS boots? I found a file
called .xmodmaprc , but it doesn't seem like working.

Thanks!
BB
Bill Marcum
2004-04-05 06:46:10 UTC
Permalink
On Sun, 04 Apr 2004 15:42:09 GMT, Berk Birand
Post by Berk Birand
Hi,
I am the original poster of the thread "Pipe as argument". First, I'd like
to thank Web Surfer, Urs Thuermann and Johannes Kloos for their answers.
AFAIK the backticks run the command in a subshell and returns the result
right?
Anyway while trying to do that, I noticed that some keys didn't work as
expected under X. The key-combination that is supposed to produce the
backtick prints | . It works flawlessly in console.
I tried doing
xmodmap -e "keycode 51 = backtick"
but got the error
xmodmap: commandline:0: bad keysym name 'backtick' in keysym list
xmodmap: 1 error encountered, aborting.
xev shows the backtick key (US keyboard, key to the left of "1") as
keycode 49 (keysym 0x60, grave)
Post by Berk Birand
What is the identifier for the backtick character? Also what should I do
to make sure this mapping is done everytime my OS boots? I found a file
called .xmodmaprc , but it doesn't seem like working.
You could put it in your .Xsession or .xinitrc.
--
Nothing is illegal if one hundred businessmen decide to do it.
-- Andrew Young
Berk Birand
2004-04-07 12:04:09 UTC
Permalink
Post by Bill Marcum
xev shows the backtick key (US keyboard, key to the left of "1") as
keycode 49 (keysym 0x60, grave)
That information has been extremely helpful to me, since I had no means of
knowing which identifier to use.
Post by Bill Marcum
Post by Berk Birand
What is the identifier for the backtick character? Also what should I
do to make sure this mapping is done everytime my OS boots? I found a
file called .xmodmaprc , but it doesn't seem like working.
You could put it in your .Xsession or .xinitrc.
The little problem here is that I am not using xdm to launch X, but gdm
(it just does look better). That is why .Xsession probably wouldn't work.
As to .xinitrc, I have no idea whether gdm uses xinit or not.

However, I have found while browsing the gdm .Default script, that the
login manager uses the file ~/.Xmodmap to load key mappings. So I have
added my code to that file, and it works marvelously..

I wish doing it in console would be as easy. I guess I'll be needing yet
another configuration file.

Thanks,
BB

Loading...