Mapping cmd to alt in X with linux keycodes

2001-10-09 Thread Adam C Powell IV
Greetings, Using Linux keycodes, I'm trying to map the command keys (next to the spacebar on an ADB keyboard) to alt using xmodmap, but nothing I've tried works. [I use the alt keys for button emulation, keycodes 56 and 100; would like command for alt since alt is next to the space bar on al

Re: Mapping cmd to alt in X with linux keycodes

2001-10-09 Thread Ethan Benson
http://master.penguinppc.org/~eb/Xmodmap note this won't work with the XFree packages in sid since xmodmap support has been removed from the Xsession scripts since its allegedly `deprecated' and as far as anyone has told me no replacement has been documented. (other then fscking with the keymap

Re: Mapping cmd to alt in X with linux keycodes

2001-10-09 Thread Matt Brubeck
> keycode 115 = Alt_L > keycode 125 = Alt_L > keycode 126 = Alt_L > > The command keys do nothing here... Any ideas? Try adding the following line after the above: add mod1 = Alt_L See 'man xmodmap' for details.

Re: Mapping cmd to alt in X with linux keycodes

2001-10-10 Thread Adam C Powell IV
Ethan Benson wrote: http://master.penguinppc.org/~eb/Xmodmap Thanks very much, this looks great! I'll fiddle with it slightly on my setup so both alt and meta are on 115 and 116. Can we suggest that to Branden for (commented) inclusion in /etc/X11/Xmodmap (or have you done so already)?

Re: Mapping cmd to alt in X with linux keycodes

2001-10-10 Thread Branden Robinson
On Wed, Oct 10, 2001 at 03:25:33PM -0400, Adam C Powell IV wrote: > That's very odd. ~/.Xmodmap still seems to work, are you saying > /etc/X11/Xmodmap will no longer be used? Bummer! xmodmap is now deprecated but not difficult to support. I continue to ship the old /etc/X11/Xmodmap in xfree86-

Re: Mapping cmd to alt in X with linux keycodes

2001-10-10 Thread Ethan Benson
On Wed, Oct 10, 2001 at 03:25:33PM -0400, Adam C Powell IV wrote: > Ethan Benson wrote: > > >http://master.penguinppc.org/~eb/Xmodmap > > > Thanks very much, this looks great! I'll fiddle with it slightly on my > setup so both alt and meta are on 115 and 116. > > Can we suggest that to Branden

Re: Mapping cmd to alt in X with linux keycodes

2001-10-10 Thread Branden Robinson
On Wed, Oct 10, 2001 at 03:26:30PM -0800, Ethan Benson wrote: > what for? Branden has already `fixed' the Xsession scripts to ignore > /etc/X11/Xmodmap as well as the ~/.Xmodmap (or whatever) since xmodmap > is allegedly `deprecated' > > apparently were supposed to just hack the raw keymaps themse

Re: Mapping cmd to alt in X with linux keycodes

2001-10-10 Thread Ethan Benson
On Wed, Oct 10, 2001 at 06:49:26PM -0500, Branden Robinson wrote: > > As far as hacking keymaps goes, yes. If the xkb data is wrong for a > model of keyboard, I think it should be fixed and I'd like to receive > patches to this effect. the trouble is nobody can agree whether `command == meta' is

Re: Mapping cmd to alt in X with linux keycodes

2001-10-10 Thread Branden Robinson
On Wed, Oct 10, 2001 at 04:05:23PM -0800, Ethan Benson wrote: > the trouble is nobody can agree whether `command == meta' is `wrong' > or not. > > given the option key is the one with `alt' engraved on it one would > presume it should be treated as alt, regardless of the fact that apple > put it

Re: Mapping cmd to alt in X with linux keycodes

2001-10-11 Thread Ethan Benson
On Wed, Oct 10, 2001 at 08:21:45PM -0500, Branden Robinson wrote: > > These are easily taken care of with little option files that you can > manipulate with XKbOption. Like "ctrl:nocaps" on the PC keyboard. > > It's not an insuperable problem at all. > > (Though how anyone can expect the "alt"

Re: Mapping cmd to alt in X with linux keycodes

2001-10-11 Thread Andrew Sharp
Ethan Benson wrote: > > On Wed, Oct 10, 2001 at 06:49:26PM -0500, Branden Robinson wrote: > > > > As far as hacking keymaps goes, yes. If the xkb data is wrong for a > > model of keyboard, I think it should be fixed and I'd like to receive > > patches to this effect. > > the trouble is nobody ca

Re: Mapping cmd to alt in X with linux keycodes

2001-10-11 Thread Gregory P. Keeney
On Thu, 2001-10-11 at 02:43, Ethan Benson wrote: > I agree, the key labeled alt should be alt by default. However the > fact is Apple's keyboards put alt in the wrong damn place and anyone > who has ever typed on a normal keyboard will be annoyed as hell at > this and thus need a trivial and quick

Re: Mapping cmd to alt in X with linux keycodes

2001-10-11 Thread Wilhelm *Rafial* Fitzpatrick
At 7:58 AM -0700 10/11/01, Gregory P. Keeney wrote: Of course us poor incorrigible emacs user are quite happy with the command key being were it is, and making option Alt... That way, the command key becomes Meta, and we have both Meta and Alt... (Throw in a Hyper and Super, and let the custom ke

Re: Mapping cmd to alt in X with linux keycodes

2001-10-11 Thread Gregory P. Keeney
On Thu, 2001-10-11 at 09:16, Wilhelm *Rafial* Fitzpatrick wrote: > How do you set this up? By default alt == meta, so I'm currently > using emacs that way, but my fingers really want meta to be the > command key. How can I tell emacs to use the command key instead? If you have your modifier bi

Re: Mapping cmd to alt in X with linux keycodes

2001-10-11 Thread Charles Sebold
On 24 Tishrei 5762, Gregory P. Keeney wrote: > Please note that the Capslock -> Control thing will only work if you > use a hacked kernel... Or if you have one of the new full-size Apple keyboards, in which CapsLock is a normal key, or replace your Apple keyboard with somebody else's PC-style USB

Re: Mapping cmd to alt in X with linux keycodes

2001-10-11 Thread Matt Brubeck
On Thu, 11 Oct 2001, Charles Sebold wrote: > > Please note that the Capslock -> Control thing will only work if you > > use a hacked kernel... > > Or if you have one of the new full-size Apple keyboards, in which > CapsLock is a normal key, or replace your Apple keyboard with somebody > else's PC-

Re: Mapping cmd to alt in X with linux keycodes

2001-11-08 Thread Brendan O'Dea
On Wed, Oct 10, 2001 at 08:21:45PM -0500, Branden Robinson wrote: >On Wed, Oct 10, 2001 at 04:05:23PM -0800, Ethan Benson wrote: >> the trouble is nobody can agree whether `command == meta' is `wrong' >> or not. >> >> given the option key is the one with `alt' engraved on it one would >> presume