LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-04-2006, 11:30 AM   #1
xppower
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
keyboard mapping


Is there anyway to map keys on the keyboard to functions...say...'END (CARRIAGE RETURN)'...so that when you press the button, that function automatically goes in.
 
Old 08-05-2006, 06:04 AM   #2
thomas-linuxing
Member
 
Registered: Jul 2006
Location: Wales - UK
Distribution: arch
Posts: 33

Rep: Reputation: 15
yes but you have to edit your xorg config file or if you are not confident enough then you could use a wizard "dpkg-reconfigure xserver-xorg" note you must be root to do this, if you are using a distro where it does not use root then type sudo in front of it.
 
Old 08-06-2006, 08:27 PM   #3
sabit
Member
 
Registered: Dec 2004
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
use xmodmap

Last edited by sabit; 08-06-2006 at 08:29 PM.
 
Old 08-07-2006, 02:12 PM   #4
xppower
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thomas- where is the 'dpkg-reconfigure xserver-xorg' located? I couldn't find it.
 
Old 08-08-2006, 09:48 AM   #5
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
dpkg=reconfigure is a Debian/Debian based package management system. So unless you use a Debian/Debian based distro this won't work. But basically to remap keycodes you need to use the Xmodmap file (either a .Xmodmap in your home directory or the system wide one). I forget how, but you can also remap keycodes at the kernel level.
 
Old 08-08-2006, 06:21 PM   #6
thomas-linuxing
Member
 
Registered: Jul 2006
Location: Wales - UK
Distribution: arch
Posts: 33

Rep: Reputation: 15
oh poo, I forgot to mention that little aspect.
 
Old 08-09-2006, 08:02 AM   #7
xppower
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
editing xorg config file

Do you know how I'd go about editing the xorg.config file to map a key on the keyboard to a certain function.
 
  


Reply

Tags
mapping



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard mapping cdhjrt Linux - Software 5 11-03-2005 04:29 PM
keyboard re-mapping bong.mau Linux - Software 1 10-26-2005 12:01 PM
Keyboard Mapping ZeroX-2 Slackware 4 10-02-2004 07:58 PM
keyboard mapping minike Slackware - Installation 4 09-01-2004 02:48 PM
X and keyboard mapping krajzega Slackware 1 02-24-2004 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:16 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