Custom keymapping is lost after rebooting

Chronos90

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

Gunnar Hjalmarsson

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Set alarms after rebooting Phone

From Dev

broadcastreceiver does not kick in after rebooting

From Dev

free jqgrid custom formatter lost after sorting or filtering

From Dev

NString value of custom object gets lost after segue (Objective C)

From Dev

reusable custom-filter components reset after dropdownlist lost focus

From Dev

Synced folders lost when rebooting a Vagrant machine using the Ansible provisioner

From Dev

Not rebooting to the lastest kernel after update to grub 2

From Dev

Desktop computer rebooting after ~3 hours

From Dev

Rebooting program after input() automatically on python

From Dev

Unable to resume KVM guest after rebooting host

From Dev

Cannot login after running startx and rebooting

From Dev

How To Keep My Files After Rebooting?

From Dev

Directory missing after rebooting Debian server

From Dev

Headset has to be re-pluged after rebooting

From Dev

Comma is lost after propagation

From Dev

Branching lost after merge

From Dev

Comma is lost after propagation

From Dev

Datepicker is lost after a callback

From Dev

AngularJS ng-model value is lost after custom validation directive is triggered

From Dev

Default style lost (e.g. colors) after setting custom style

From Java

K8s Elasticsearch with filebeat is keeping 'not ready' after rebooting

From Dev

when adding contacts to sim card, they are only displayed after rebooting the device

From Dev

What causes SSH problems after rebooting a 14.04 server?

From Dev

What causes SSH problems after rebooting a 14.04 server?

From Dev

Ubuntu 14.04 Trusty doesn't utilize hot corners after rebooting

From Dev

USB stick not avaliable after rebooting from Live session

From Dev

WiFi is not available after rebooting in Ubuntu-16.04.4 LTS

From Dev

Internet connectivity works only after rebooting - Manjaro/Ubuntu

From Dev

How can I stop windows from rebooting after an automatic update?

Related Related

  1. 1

    Set alarms after rebooting Phone

  2. 2

    broadcastreceiver does not kick in after rebooting

  3. 3

    free jqgrid custom formatter lost after sorting or filtering

  4. 4

    NString value of custom object gets lost after segue (Objective C)

  5. 5

    reusable custom-filter components reset after dropdownlist lost focus

  6. 6

    Synced folders lost when rebooting a Vagrant machine using the Ansible provisioner

  7. 7

    Not rebooting to the lastest kernel after update to grub 2

  8. 8

    Desktop computer rebooting after ~3 hours

  9. 9

    Rebooting program after input() automatically on python

  10. 10

    Unable to resume KVM guest after rebooting host

  11. 11

    Cannot login after running startx and rebooting

  12. 12

    How To Keep My Files After Rebooting?

  13. 13

    Directory missing after rebooting Debian server

  14. 14

    Headset has to be re-pluged after rebooting

  15. 15

    Comma is lost after propagation

  16. 16

    Branching lost after merge

  17. 17

    Comma is lost after propagation

  18. 18

    Datepicker is lost after a callback

  19. 19

    AngularJS ng-model value is lost after custom validation directive is triggered

  20. 20

    Default style lost (e.g. colors) after setting custom style

  21. 21

    K8s Elasticsearch with filebeat is keeping 'not ready' after rebooting

  22. 22

    when adding contacts to sim card, they are only displayed after rebooting the device

  23. 23

    What causes SSH problems after rebooting a 14.04 server?

  24. 24

    What causes SSH problems after rebooting a 14.04 server?

  25. 25

    Ubuntu 14.04 Trusty doesn't utilize hot corners after rebooting

  26. 26

    USB stick not avaliable after rebooting from Live session

  27. 27

    WiFi is not available after rebooting in Ubuntu-16.04.4 LTS

  28. 28

    Internet connectivity works only after rebooting - Manjaro/Ubuntu

  29. 29

    How can I stop windows from rebooting after an automatic update?

HotTag

Archive