Created
November 28, 2013 16:06
-
-
Save cebe/7694219 to your computer and use it in GitHub Desktop.
Swapping the PageUp,PageDown keys with Pos1,End on Lenovo keyboard.
The Lenovo T530 has the pageup and pagedown keys placed directly over the arrow keys left and right.
Navigation is quite unintuitive this way as I expect the Pos1 and End keys there to go to the start and end of the line. You'll need xdotool and xbindkeys: `sudo apt-get install …
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using the KP_* keys here to emulate behavior | |
// otherwise this will result in an endless loop | |
"xdotool key KP_Home" | |
Release+Prior | |
"xdotool key KP_End" | |
Release+Next | |
"xdotool key KP_Prior" | |
Release+Home | |
"xdotool key KP_Next" | |
Release+End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This solution is a bit Hacky. there might be a better way via re-defining the keyboard layout but I did not figure out how to change it for this type of keys...
ref: