I've wanted to remap my print key on my Thinkpad T460p because Lenovo decided it would be more useful than the context menu ("Menu" which is basically the right mouse-) button.
It tried a solution from this thread and did the following:
Using
xev | grep keycode
and pressing the print key got me its keycode which is 107. The only difference to this thread is my keycode and I've set its value to "Menu". I've also edited .Xmodmap to keycode 107 = Menu NoSymbol Menu
It works setting it temporary but after a reboot it's gone. And yes I've edited the xinitrc too.
Is there an easier way maybe with the help of a GUI? I just want to use my print key as a context menu.
Thx everybody
This is a long shot, but maybe adding sleep 5
to ~/.xinitrc
, like this:
if [ -f $HOME/.Xmodmap ]; then
{
sleep 5
/usr/bin/xmodmap $HOME/.Xmodmap
} &
fi
Edit:
It looks like ~/.xinitrc
is not sourced in Ubuntu (with lightdm). Try ~/.xsessionrc
instead.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments