Page 1 of 1

Remapping Keys

Posted: Thu Jan 24, 2013 6:29 pm
by sectionq
Hi everyone,

First off, I'm a total nube, but here goes...
I've been trying to get some keys remapped and I've already followed the instructions on a previous thread from back in July. Problem I'm having is with getting it to work from startup. The instructions I followed are as follows...

xev to find out my codes.

xmodmap -pke > $HOME/.keymap.conf
Then:
sudo nano $HOME/.keymap.conf
Change the codes to what I need...
Then...
xmodmap $HOME/.keymap.conf
Check my new keys work, which they do.

Then...
sudo nano /etc/init.d/keymap.sh

in here I'm putting...(replacing "user" with my own user name)

#!/bin/sh
PATH=/home/"user"/.keymap.conf
#Execute key re-mapping
xmodmap $PATH

Then this is where I'm falling over, I put this in terminal
sudo update-rc.d keymap.sh defaults
And it tells me...

update-rc.d: warning: /etc/init.d/keymap.sh missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System start/stop links for /etc/init.d/keymap.sh already exist.

So not knowing what I'm doing I add in what I figure to be LSB information at the start

### BEGIN INIT INFO
# Provides: scriptname
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
#!/bin/sh
PATH=/home/"user"/.keymap.conf
#Execute key re-mapping
xmodmap $PATH

I managed to get rid of the warnings but it stiil tells me "System start/stop links for /etc/init.d/keymap.sh already exist."

So after a reboot my keymappings are all lost.

Any ideas?

Thanks

Jamie

Re: Remapping Keys

Posted: Fri Jan 25, 2013 12:55 am
by DeRaza360
Are you sure that this question should be newbie questions? Seems kinda complicated.

Re: Remapping Keys

Posted: Fri Jan 25, 2013 7:18 am
by sectionq
I'm a newbie so few of the other categories make much sense, so where would you suggest I post it? There is no easy gui that I've been able to find that will do this si I'm expecting to jump through a few hoops.