hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Oct 17, 2006 12:40 pm Post subject: xorg with numlock on USB key/numpad always on |
|
|
Hi,
i'm using Xorg and external USB num pad (only numerical keys) along side my normal ps2 keyboard.
I would like to have numlock on my USB key/numpad always on. Even if i (or anyone other for that matter) presses it and disables it it should go back on automagically.
I have found numlockx, which is great. I put it in a simple shell script (while1;numlockx on;sleep 3) and works but only for the PS/2 keyboard! I doesn't for my USB keypad.
Is there a program or kind of Xorg configuration that i can use to make numlockx always on or that it turns itself on if it's disabled?
Thank you for any ideas.
This is the code i use for Xorg for USB numpad:
Code: | Section "InputDevice"
Identifier "USBKeyboard"
Driver "evdev"
Option "CoreKeyboard"
Option "Device" "/dev/input/ISGnums"
Option "XkbRules" "xorg"
Option "XkbLayout" "en"
Option "XkbModel" "evdev"
Option "XkbVariant" "nodeadkeys"
EndSection |
|
|