Ask Your Question

Custom keyboard layouts

asked 2014-11-05 07:53:01 -0500

ivanm gravatar image

My Lenovo Thinkpad T440s has the PrtSc key where I want/expect the Menu key (i.e. the key that brings up the right-click menu) to be.

In the past I've fixed problems like this by using xmodmap, but from what I understand nowadays every time the computer is suspended, etc. the keyboard is considered to be unplugged and then plugged back in again when the session is resumed, and thus the xmodmap settings are no longer applied. It seems that the correct approach is to have the DE (in this case Gnome-Shell) to deal with the keyboard layout, preferably via xkb.

Unfortunately, swapping PrtSc and Menu doesn't seem to be a pre-defined rule in /usr/share/X11/xkb/rules/xorg.lst and I'm now stumped. Is there anything else I can do (especially since having a custom keyboard layout would require me to edit other files in /usr/share/X11/xkb/, and would thus be lost any time the package is updated)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-06 05:01:33 -0500

ivanm gravatar image

It's not ideal (in that I'll have to re-do it when my changes are reverted from a package update) but I ended up writing a custom rule and modifying /usr/share/X11/xkb/rules/evdev following this guide:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-11-05 07:53:01 -0500

Seen: 1,105 times

Last updated: Nov 06 '14