Skip to content

Instantly share code, notes, and snippets.

@cebe
Created November 28, 2013 16:06
Show Gist options
  • Save cebe/7694219 to your computer and use it in GitHub Desktop.
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 …
// 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
@cebe
Copy link
Author

cebe commented Nov 28, 2013

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment