Remapping Keys

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Remapping Keys

Postby sectionq on Thu Jan 24, 2013 6:29 pm

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
sectionq
Level 1
Level 1
 
Posts: 9
Joined: Thu Jan 24, 2013 6:08 pm

Linux Mint is funded by ads and donations.
 

Re: Remapping Keys

Postby DeRaza360 on Fri Jan 25, 2013 12:55 am

Are you sure that this question should be newbie questions? Seems kinda complicated.
DeRaza360
Level 1
Level 1
 
Posts: 20
Joined: Sun Sep 30, 2012 5:02 am

Re: Remapping Keys

Postby sectionq on Fri Jan 25, 2013 7:18 am

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.
sectionq
Level 1
Level 1
 
Posts: 9
Joined: Thu Jan 24, 2013 6:08 pm


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 32 guests