Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucsd!usc!snorkelwacker!bloom-beacon!islington-terrace.csc.ti.COM!pf From: pf@islington-terrace.csc.ti.COM (Paul Fuqua) Newsgroups: comp.windows.x Subject: Using xmodmap to shuffle control and meta keys Message-ID: <2850752131-5259062@Islington-Terrace> Date: 3 May 90 19:35:31 GMT Sender: pf@islington-terrace.csc.ti.com Organization: The Internet Lines: 39 I occasionally have access to a SparcStation 1 running 4.0.3c and X11R4 patched up to at least fix-9. I'm trying to use xmodmap to make the diamond keys (Meta_L and Meta_R) into Control keys and the Alt key (Alt_L) into a Meta key. [I'm usually a lisp machine user, hence the odd arrangement.] I've tried two sequences in a .xmodmaprc file (see below). Feeding either to xmodmap in my .xinitrc gives me xterms that just beep when I use any of the Control keys, even though xmodmap -pm shows the right keys with the right modifiers. Gnuemacs and xsaber, however, accept them as I intended. If I start up X without xmodmap, then run xmodmap from an xterm, that one xterm will have the keys shuffled as I want, but any xterm created later will just beep. Is there something I'm missing here? How can I do this? Any help appreciated. First .xmodmaprc: remove Mod1 = Meta_L remove Mod1 = Meta_R keysym Alt_L = Meta_L keysym Meta_L = Alt_L add Mod1 = Meta_L add Control = Alt_L add Control = Meta_R Second .xmodmaprc: remove Mod1 = Meta_L remove Mod1 = Meta_R add Control = Meta_L add Control = Meta_R add Mod1 = Alt_L Paul Fuqua pf@csc.ti.com {smu,texsun,cs.utexas.edu,rice}!ti-csl!pf Texas Instruments Computer Science Center PO Box 655474 MS 238, Dallas, Texas 75265