This is a short guide meant to help others looking to remap their Copilot key at the sysytem level after installing a Linux distribution. There are GUI applications for remapping keys, but raivya’s keyd is an extremely lightweight option that is easily modified with any command-line text editor.
It was important for me to pick a remapping application that works at the system-level (i.e. a daemon), but there are options for those wanting user-level remapping only. This would be more interesting for those looking to assign unique functions across a variety of applications using a single key.
Installation and example remapping:
-
Install keyd from source or use Copr version per your distribution’s requirements. Read about Copr here if it’s new to you.
-
Run keyd via terminal.
sudo systemctl enable --now keyd -
Identify your keyboard ID and the key you need to remap. The Copilot key is often registered as a combination of keys, such as left meta + left shift + f23.
sudo keyd monitor -
Escape monitor mode using ctrl + c.
-
Create (or edit) the keyd config file.
sudo nano /etc/keyd/default.config -
Define the keyboard and key to be remapped in the config file. The following example is from my system and will require using your correct keyboard ID. keyd will refer to this file at system startup to ensure your key stays mapped to the new function.
[ids] 0001:0001:093d12dc [main] leftshift+leftmeta+f23 = rightcontrol -
Last step, reload keyd to apply changes.
sudo keyd reload
That is pretty much it. You may continue to edit your config file, rebinding keys to your heart’s content.
