Make xmodmap Changes Permanent

1

1

I made some changes to my keymap by writing:

remove mod4 = Super_L
add control = Super_L

in ~/.Xmodmap

The changes work after running xmodmap ~/.Xmodmap

But they will not stick after restart.

I tried adding the command in ~/.bash_profile but no luck.

Also tried adding xmodmap ~/.Xmodmap to Startup Applications.

Apparently some have had success adding a sleep before the command but this did not help me. It looks like a hack so there should be a better way.

BAR

Posted 2015-08-24T12:09:47.633

Reputation: 389

It might work if you put the command in your ~/.xinitrc so that the command is ran after X starts. – Dan D. – 2015-08-24T21:03:41.367

1@DanD. I tried that too. It's baffling. Nothing works but running the command manually. I even tried using a cronjob which completes without error yet this too does not work. – BAR – 2015-08-25T01:28:49.390

No answers