LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   keyboard mapping (https://www.linuxquestions.org/questions/linux-kernel-70/keyboard-mapping-470780/)

xppower 08-04-2006 11:30 AM

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.

thomas-linuxing 08-05-2006 06:04 AM

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.

sabit 08-06-2006 08:27 PM

use xmodmap

xppower 08-07-2006 02:12 PM

Thomas- where is the 'dpkg-reconfigure xserver-xorg' located? I couldn't find it.

verdeboy2k 08-08-2006 09:48 AM

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.

thomas-linuxing 08-08-2006 06:21 PM

oh poo, I forgot to mention that little aspect.

xppower 08-09-2006 08:02 AM

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.


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