Looking for autostart advice

I’m remapping some keys using xmodmap but I’m having problems getting it to get applied on login. Something seems to be overwriting the map again. I tried the do it via .xmodmap, sourced in .xinitrc and via profile as well (where I’m already successfully starting xinput commands) but it’s not picking it up. What would be the best way to do this? Is it via systemd/user?

xkb is the better way, but it’s waaaaay more complicated than xmodmap. Unfortunately, it’s been years since xmodmap was known to be deprecated and nowadays it tends to interfere with DE/WM way of input handling. So, I guess there’s no better way than learning how to customize keymapping with xkb.

Cool. I’ll look into xkb
Cheers @leledumbo