1753925 Members
9071 Online
108810 Solutions
New Discussion юеВ

Re: Keyboard Mapping

 
JayararamanSubramanian
Occasional Advisor

Keyboard Mapping

Hi

I have to do the following mapping to get a X Windows application to work on HP UNIX 11.23( itanium processor)

xmodmap -e "keysym BackSpace = Delete" -e "keysym Delete = BackSpace"

The issue is, this command only makes the changes temp. on the X windows Application. When I change the mouse focus to another Application ( also X windows), the mapping is lost.

May i know how to make the following a permanent change ?

Can I use itemap ?
Any other suggestion?
5 REPLIES 5
Suraj K Sankari
Honored Contributor

Re: Keyboard Mapping

HI,
How about putting putting this command into .dt_profile ?

xmodmap -e "keysym BackSpace = Delete" -e "keysym Delete = BackSpace"


Suraj
JayararamanSubramanian
Occasional Advisor

Re: Keyboard Mapping

Just to clarify? Will this .dt_profile be stored under the home directory of the User?

I will try this and get back to you
THanks.
Jayaram
Alex Glennie
Honored Contributor

Re: Keyboard Mapping

or consider using keymap_ed as in

make a copy of XHPKeymaps

add new modmap and put into XHPKeymaps.new
keymap_ed -k XHPKeymaps -m modmap

copy back

cp XHPKeymaps.new /usr/lib/X11XHPKeymaps

more info on the man page.
JayararamanSubramanian
Occasional Advisor

Re: Keyboard Mapping

Thanks

Will try both solutions...

Will feedback tomorrow.

regards
Jaya
JayararamanSubramanian
Occasional Advisor

Re: Keyboard Mapping

Hi
I tried both solutions. Unfortunately for me, none really solved the issue I am facing.
#1- .dtprofile
==============
I stared with creating a .dtprofile in the users Home directory.
Rebooted the system and checked. While the Xterm works fine, the X windows program started by a server as process is not responding to backspace for erase. However it will still work temporarity for Xmodmap command from xterm session.

#2: keymap_ed
=============
Yeah. I did this as well with a numebr of combinnations as well.
keysym, keycode etc.
again i was not luckly.

Not sure what else can be done....