<div dir="ltr"><div>I use a split keyboard (dacyl manuform) that utilizes qmk. One of the keys on the thumbcluster is set to "menu" or "app". I use xmodmap to map this to hyper for use in emacs, as well as enabling F13-F24.  <br></div><div><br></div><div>Everything works splendidly barring one small issue. Due to the custom nature of the keyboard I use a magnetic usb-c to enable me to disconnect my keyboard and take it to work or other places where I will need it. <br></div><div><br></div><div>Upon reconnect xmodmap resets to defaults. This wouldn't be as much of an issue if I shutdown my pc at all times but I leave it on for file syncing and remote access. <br></div><div><br></div><div>It's rather tedious to re-run my bash script every time I reconnect. What would be the best way to prevent reconnecting keyboards to set to system defaults? Or alternatively what is the process to redefine the defaults to my use case?</div><div><br></div><div>I've tried searching this up online but hyper seems to be a pretty infrequently used feature. I tried looking into /usr/share/x11/xkb/rules/xorg.lst but it seems the xkboptions value might not be freeform but requires preset options. <br></div><div><br></div><div>Best,</div><div>Tyler<br></div></div>