How to keep keyboard mapping after reboot?
1
vote
0
answers
244
views
In order to remap my keyboard I use the following commands:
$ setxkbmap -layout fr -variant latin9 -option ''
$ setxkbmap -option ctrl:nocaps
$ printf "keycode 127 = Caps_Lock NoSymbol Caps_Lock" > ~/.Xmodmap
$ xmodmap ~/.Xmodmap
After that, everything works as expected. However, when I reboot (I noticed the same behavior on two of my computers, one is on Lubuntu 20.04 and the other on Ubuntu 20.04), I have swapcaps instead of nocaps and keycode 127 has its original mapping.
How can I prevent reboot from changing my remapping?
Asked by crocefisso
(193 rep)
Sep 24, 2022, 08:31 AM