Can keys off the numpad be configured for different functions based on NumLock?

Kam Leo kam.leo at gmail.com
Fri Aug 26 16:37:54 UTC 2011


On Fri, Aug 26, 2011 at 8:59 AM, Dotan Cohen <dotancohen at gmail.com> wrote:
> I would like to configure some keys to have dual functions, such as
> hjkl for the arrows and sdf for cut/copy/paste. Can the alphanumeric
> keys be configured for different functions based on NumLock on/off?
> This is the xev output for the numpad 1 button in both states:
>
>    state 0x10, keycode 87 (keysym 0xffb1, KP_1), same_screen YES,
>    state 0x0, keycode 87 (keysym 0xff9c, KP_End), same_screen YES,

Take a look at these for clues:

http://linux.about.com/library/cmd/blcmdl5_keymaps.htm

http://www.faqs.org/docs/Linux-HOWTO/Keyboard-and-Console-HOWTO.html

http://www.linux.com/learn/tutorials/320420-weekend-project-configure-your-keyboard-into-submission

> Thanks.
>
> --
> Dotan Cohen
oject.org/wiki/Mailing_list_guidelines
>


More information about the users mailing list