I wanted to remap the keys for my page up and page down number pad so that they would actually act like the real page up and page down. I used the xmodmap successfully following the directions based on the how-do-i-remap-certain-keys help (plus some a tweak that I realized on my own).
I would like to make those two commands execute every time I start the computer:
xmodmap -e "keycode 89 = Next KP_3 Next KP_3"
xmodmap -e "keycode 81 = Prior KP_9 Prior KP_9"
Sure, I can see that the proper way to remap the keys would be to create xinitrc
and Xmodmap
files, but I thought it would be a good time to learn how to make something happen at startup instead. Also, I thought this would be easier to maintain since I would only have to keep track of the startup scripts rather than remember the xmodmap files.
Based on the instructions in how to make a command execute at start-up I thought I could add the commands to my /etc/rc.local
file, but that's clearly not working.
Also, based on the directions in the bash startup guide, I tried adding the commands to ~/.bashrc
and ~/.bash_profile
. This also didn't work.
Can anyone tell me what I'm missing?
Thank you