@ stellanrandom:-
Forget udev. In Puppy,
xmodmap is the way to go.
I've run Puppy, for several years, on an elderly Compaq Presario desktop tower,
and an even older Dell Inspiron laptop. You know all about the connection between 'geeks' and coffee, don'tcha? Coupla years ago, I spilt the remains of a mug of coffee over the right-hand side of the Dell's keyboard. Impossible to strip-down & clean, these
are still available, but vendors are asking ridiculous amounts of cash for them. Before I decided to run a cheapo wireless keyboard instead, I made up a number of small scripts, using 'xmodmap', to re-map the most needed keys.....including, as fate would have it, the 'Enter', '=', '#' and 'Backspace' keys.
Some have since recovered, but not all.
You can find a list of the 'key-syms' recognised by xmodmap, here:-
http://wiki.linuxquestions.org/wiki/...sed_by_Xmodmap
----------------------------------------
As an example, I used 'Right_Shift' to replace the 'Return/Enter' key. I never use it, and it sits immediately under the 'Return' key, so not
too unintuitive. The wee script I made up is as follows:-
Code:
# !/bin/sh
#
# Temporary 'Return' key workaround script
#
xmodmap -e "keysym Shift_R = Return"
xmodmap -e - tells xmodmap to execute the immediately following string.
The string itself must be enclosed by double-quotation marks - (") rather than the single variety (')
Syntax:- "keysym[space]replacement key[space]=[space]key being replaced"
You can either use the key names, or the equivalent key-code. I found the key name to be easier to use.
----------------------------------------
Since the xmodmap script is not persistent, i.e., lasts for the duration of the session
only, you need to reload the script each time you boot into Puppy. Give each key's wee script a descriptive name, along with the '.sh' suffix, then place each script into /root/Startup. Anything placed in this directory is executed at boot-time.
Make sure the script is marked as 'executable'. Simplest way; right-click->Properties->tick all 3 of the 'Exec' boxes->Refresh (down the bottom)->OK/Exit.
You can make up as many of these scripts as you need; one for each key. In fact, although I never did this, you could probably include all that you need in a single, common script. In my case, it could have looked like this:-
Code:
# !/bin/sh
#
# Temporary key re-mapping script
#
xmodmap -e "keysym Shift_R = Return" # Return key
xmodmap -e "keysym Insert = BackSpace" # Backspace key
xmodmap -e "keysym Pause = equal" # Equals key
xmodmap -e "keysym backslash = numbersign" # Hash key
These would have then all been executed by a single script.
Xmodmap is built-in to Puppies. Give it a try; it
should, I feel, do what you want.
Mike.