home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!uwm.edu!rutgers!concert!duke!duke.cs.duke.edu!hsg
- From: hsg@cs.duke.edu (Henry Greenside)
- Newsgroups: comp.unix.aix
- Subject: xmodmap problems in AIX 3.2.2
- Message-ID: <HSG.92Sep12235034@macbeth.cs.duke.edu>
- Date: 13 Sep 92 03:50:34 GMT
- Sender: news@duke.cs.duke.edu
- Distribution: comp.unix.aix
- Organization: Duke University CS Dept., Durham, NC
- Lines: 55
- Nntp-Posting-Host: macbeth.cs.duke.edu
-
-
- I am using xmodmap to reassociate keys on my RS/6000
- 340 keyboard, e.g., move ESC to the grave (`) key,
- interchange the CAPS LOCK and left control key, and so
- on. I then have a statement of the form:
-
- usermodmap=$HOME/.Xmodmap-$HOSTTYPE
- if [ -f $usermodmap ]; then
- xmodmap $usermodmap
- fi
-
- in my .xinitrc file to execute xmodmap when starting up
- X.
-
- I have found two problems:
-
- 1. Although I have verified that the xmodmap command is
- being executed when I start X, I find that the keymap
- changes are actually not being made, i.e., I have to go
- into an xterm window and run "xmodmap .Xmodmap-rs6000"
- directly. All other .xinitrc commands seem to run ok.
-
- 2. Not all X window programs respect the keyboard
- changes, which is a REAL pain, making some programs
- unusable. E.g., after executing xmodmap, the tilde (~)
- character works correctly in a xterm window, but some
- other programs (both AIX and public domain) that
- require a pathname as text input will treat ~ as a
- "quit" mouse selection and cause a window to exit. I
- have exchanged DEL and BACKSPACE which work in a xterm,
- but the exchange isn't recognized in the "ftp" program,
- when invoked in a xterm.
-
- Has anyone had similar problems? Is there a fix? I
- include below the actual changes that are executed by
- xmodmap.
-
- Henry
-
-
-
- remove Lock = Caps_Lock ! Swap Caps_Lock and Control_L
- remove Control = Control_L
- keysym Control_L = Caps_Lock
- keysym Caps_Lock = Control_L
- add Lock = Caps_Lock
- add Control = Control_L
-
- keysym BackSpace = Delete ! Swap Backspace and Delete
- keysym Delete = BackSpace
-
- ! Move ESC to grave key, grave to ESC key, while preserving ~
-
- keysym grave = Escape asciitilde grave
- keysym Escape = grave
-