LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2005, 08:50 AM   #1
dupontct
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
maping keys of multiple keyboards


I have 2 keyboards plugged into my computer one is a IBM model M. The other is a logitech elite keyboard. I want to remap the keys of the logitech keyboard while leaving the keys on the IBM the same. Is this even possible? How should I go about setting this up?

Thanks

Aygar
 
Old 10-20-2005, 01:41 PM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Which keys do you want to remap? Remapping the standard keys will affect both keyboards (I think). But if you are talking about some flashy extra keys on the logitech, this is easy.

It's different for console and X.

For the console, the keymaps are under /usr/share/kbd/keymaps/i386/* (on Slackware anyway). These are loaded with the loadkeys command. You can copy one of these and modify it to your requirements (I put mine in /etc/defkeymap.map) and load it at boot time. (You can also compile it into the kernel).

For X, create ~/.Xmodmap and put 'xmodmap ~/.Xmodmap' in your ~/.xinitrc (or ~/.xsession). See the xmodmap man page for the syntax of this file. Use xev to see the keycodes for the keys and plug them into your .Xmodmap.

If you're talking about remapping the whole keyboard, I don't know if this is possible yet (no way to differentiate between keyboards -- I seem to recall reading that this is being worked on, but I can't remember any details).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple monitors and keyboards and mice, OH MY! dlublink Linux - Hardware 2 02-08-2005 02:16 PM
Advanced Key maping 4of11 Linux - General 0 10-07-2004 02:50 PM
Using GPG Keys on Multiple Computers General_Tso Linux - Security 5 10-06-2004 10:37 AM
Working with SSH and multiple private keys IgD Linux - Security 2 09-08-2003 10:07 PM
Keyboard Maping with rlogin from HP-UX Jacknight Linux - General 0 12-06-2001 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration