I use Xmodmap to remap some of my keys. I want to use Xkbmap to have a keyboard shortcut to switch keyboard layouts. When I run setxkbmap us, my keyboard layout changes but my Xmodmap changes get lost. I have to reload the file with xmodmap .Xmodmap.
uname -a:
Linux Hermes 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 GNU/Linux pacman -Q | grep xmodmap:
xorg-xmodmap 1.0.9-1 pacman -Q | grep xkbmap:
xorg-setxkbmap 1.3.1-1