Re: xmodmap

I was using xmodmap to swap change my Caps Lock key to Esc and change Caps Lock to the rightShift key. This was working fine at first, but after about a day of up time, my keyboard would be reverted to default. I don’t know why that was happening.

Instead I loaded my custom keyboard layout with the localectl utility. I accomplished this with the following command localectl set-x11-keymap us pc104 querty caps:escape,shift:both_capslock_cancel. I think this way of setting the keyboard layout will stick because it changes the /etc/X11/xorg.conf.d/00-keyboard.conf and /etc/vconsole.conf configuration.

For more information see: https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg#Using_localectl