Remapping keyboard without firmware modification (adding SysRq key)

I tried this method on my pocket reform under wayfire to no success.

My goal was remapping altgr to right shift.

I used GitHub - wez/evremap: A keyboard input remapper for Linux/Wayland systems, written by @wez

I use the following alternate systemd service file from the evremap default:

[Unit]
Description=Key remapper evremap
After=multi-user.target

[Service]
WorkingDirectory=/
# For reasons I don't care to troubleshoot, Fedora 31 won't let me start this
# unless I use `bash -c` around it.  Putting the command line in directly
# yields a 203 permission denied error with no logs about what it didn't like.
ExecStart=
ExecStart=bash -c "/usr/local/bin/evremap remap /etc/evremap.toml -d 0"
Restart=always

[Install]
WantedBy=default.target

With the following evremap.toml:

device_name = "MNT Pocket Reform Input Keyboard"

[[remap]]
input = ["KEY_RIGHTALT"]
output = ["KEY_RIGHTSHIFT"]

This is working for me in wayfire.

4 Likes