On my Linux TV box the remote I'm using has some buttons I've wanted to remap, for example the back button on the remote doesn't do anything in Steam so I'd like to remap it to ESC. Gamescope+Steam don't offer a way to remap buttons, but I found a nice little tool that does!
https://github.com/cyber-sushi/makima