I want to switch the PgUp and the Delete keys. I have done this successfully on my laptop from the terminal, but I have not been successful in getting these commands to automatically run on startup. To remap the keys, I used these commands.
xmodmap -e "keycode 112 = Delete"
xmodmap -e "keycode 119 = Prior"
This successfully switches the keys, but I have to re-enter these commends after rebooting. I then tried to follow instructions to create something called a script to run at start to make these changes permanent. The instructions to do this are everywhere on the internet, but none seem to be the same!
I tried duplicating some of the instructions, but they didn't work.
I guess my question is: How do I create this script or whatever it's called and how do I save it to autorun every time the computer boots up? Thanks.