Re: A question asked many times-

2003-01-30 Thread Thaddeus Quintin
This was the perfect answer!

I wasn't sure if "meta" was something that would be recognized in the 
keymap files, but it worked like a charm.

Rather than edit the file by hand, it was easer to do-

sed 's/lalt/meta/g' us.iso.kbd > local.kbd

Gotta utilize those UNIX tools!

Thanks a lot
Thaddeus
I would like to map my "alt" keys to be "meta" keys.  Is there any
reason why I shouldn't do that?  Is there a better/different
solution?  Using ESC just doesn't cut it...


Copy the file /usr/share/syscons/keymaps/us.iso.kbd to a different
name, like /usr/share/syscons/keymaps/local.kbd.  Then open local.kbd
with an editor and replace all instances of `lalt' with `meta'
(without quotes).  This will make the left ALT key work as META.  Load
the new keymap with:

	# kbdcontrol -l local.kbd

To make "local.kbd" the default keymap at boot time, set
keymap="local" in your /etc/rc.conf file.

You can also map the right ALT key to META if you change `ralt' to
`meta', but I don't suggest switching both left and right ALT keys to
META since that would make switching consoles a bit difficult.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: A question asked many times-

2003-01-30 Thread Kirk Strauser
At 2003-01-30T04:44:52Z, "Thaddeus J. Quintin" <[EMAIL PROTECTED]> writes:

> I would like to map my "alt" keys to be "meta" keys.  Is there any reason
> why I shouldn't do that?  Is there a better/different solution?  Using ESC
> just doesn't cut it...

Are you using X?  If so, is it 4.x?  If so, edit your XF86Config file.  Find
the "InputDevice" section for your keyboard.  Add this line to bind `meta'
and `alt' to the alt keys:

Option "XkbOptions" "altwin:meta_alt"

I'm using a Happy Hacking keyboard, and I used the line:

Option "XkbOptions" "altwin:meta_win"

to bind `meta' to my left and right diamond keys (the ones that would act
like "Windows" keys were I running a different OS.  I get both `alt' and
`meta' separately this way.
-- 
Kirk Strauser
In Googlis non est, ergo non est.



msg17234/pgp0.pgp
Description: PGP signature


Re: A question asked many times-

2003-01-30 Thread Scott Ballantyne
"Thaddeus J. Quintin" <[EMAIL PROTECTED]> writes:
> Greetings-
> I've looked around in google and the FreeBSD archives and I've seen this
> question asked many times, but never found the answer.
> 
> I would like to map my "alt" keys to be "meta" keys.  Is there any
> reason why I shouldn't do that?  Is there a better/different solution?
> Using ESC just doesn't cut it...
> 

If you're using X, the method for doing this is described in the man
page for xmodmap. There is no problem with doing this, you can still
switch consoles if needed using alt-ctrl F. If you aren't using X,
use kdbcontrol, as described in another message.

sdb
-- 
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: A question asked many times-

2003-01-30 Thread Giorgos Keramidas
On 2003-01-29 23:44, "Thaddeus J. Quintin" <[EMAIL PROTECTED]> wrote:
> Greetings-
> I've looked around in google and the FreeBSD archives and I've seen this
> question asked many times, but never found the answer.
>
> I would like to map my "alt" keys to be "meta" keys.  Is there any
> reason why I shouldn't do that?  Is there a better/different
> solution?  Using ESC just doesn't cut it...

Copy the file /usr/share/syscons/keymaps/us.iso.kbd to a different
name, like /usr/share/syscons/keymaps/local.kbd.  Then open local.kbd
with an editor and replace all instances of `lalt' with `meta'
(without quotes).  This will make the left ALT key work as META.  Load
the new keymap with:

# kbdcontrol -l local.kbd

To make "local.kbd" the default keymap at boot time, set
keymap="local" in your /etc/rc.conf file.

You can also map the right ALT key to META if you change `ralt' to
`meta', but I don't suggest switching both left and right ALT keys to
META since that would make switching consoles a bit difficult.

- Giorgos

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: A question asked many times-

2003-01-29 Thread Mike Meyer
In <01c2c81a$546e60e0$0200a8c0@tjqathlonpc>, Thaddeus J. Quintin 
<[EMAIL PROTECTED]> typed:
> I would like to map my "alt" keys to be "meta" keys.  Is there any
> reason why I shouldn't do that?  Is there a better/different solution?
> Using ESC just doesn't cut it...

You're using Emacs, right? If so, have you tried using the alt keys as
meta keys? Here, in Xemacs, they work as a meta key out of the box.

  http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



A question asked many times-

2003-01-29 Thread Thaddeus J. Quintin
Greetings-
I've looked around in google and the FreeBSD archives and I've seen this
question asked many times, but never found the answer.

I would like to map my "alt" keys to be "meta" keys.  Is there any
reason why I shouldn't do that?  Is there a better/different solution?
Using ESC just doesn't cut it...

Thanks!

Thaddeus


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message