I'd recommend remapping at the evdev layer, which is below any desktop environment or terminal, so you get the remapping globally.
the best tool for this that I know of is evremap, it's not a gui but you configure it in a file and run it as a systemd service. you can get the key names and whatnot from evtest.