keyd is a linux utility to change the keymapping of the keyboard.
dnf install gcc make
git clone https://github.com/rvaiya/keyd
cd keyd
make && sudo make install
sudo systemctl enable --now keyd
Example /etc/keyd/default.conf
[ids]
*
[meta]
f1 = f11
f2 = f12
up = pageup
down = pagedown
left = home
right = end
backspace = delete
linux