A nice tutorial by Dedoimedo using KDE Plasma:
https://www.dedoimedo.com/computers/linux-keyboard-custom-remap.html