Remap back and forward to page up/down

Posted by

On my ThinkPad E575 the keys above left and right arrow are page up and page down. This is handier than the back and forward keys on my X220. Here’s how to remap the keys. This was tested to work on Pop!_OS (Ubuntu 17.10, Gnome3)
vi ~/.xinitrc


xmodmap ~/.Xmodmap

vi ~/.xmodmap

keycode 166=Prior
keycode 167=Next

Log out and log back in.

GoSaBe Blog - Oct 13, 2017 | Hardware, Linux