Remap Windows CoPilot key

Mods - hopefully this is the best place to post this. I am sure these instructions can be improved by somebody more knowledgeable.

Having got a new (Lenovo) laptop with Windows11, of course it came with the new (useless) CoPilot key. Worse, its where the right CNTRL key used to be. And still should be!

I have discovered just how much I use the right CNTRL key - all the time in Firefox (CNTRL+ to zoom, CNTRL- to zoom out, CTRL0 to reset to normal zoom). Other apps also. Not having it was annoying.

First, I tried the keyboard shortcuts tool in Settings. This doesn't address the issue (maybe it could in future? ) because apparently the CoPilot key issues a combination of existing keys:

leftshift+leftmeta
Others say it issues leftshift+leftmeta+F23, maybe thats just in windows?

So far, this seems to work very well:

First install git if you don't have it

sudo apt install git

then

git clone https://github.com/rvaiya/keyd
cd keyd/etc/keyd/default.conf:
make && sudo make install
sudo systemctl enable keyd && sudo systemctl start keyd

The keyd configuration file is located in /etc/keyd/default.conf
This wasn't created automatically for me, seasoned pros will do this from the terminal. For a beginner like me, open nautilus in super mode:
sudo -i
nautilus

Navigate to /etc/keyd/ and create default.conf with the following content:

[ids]

*

[main]
leftshift+leftmeta = overload(control, esc)

Reset keyd with
sudo keyd reload

This is now working for me.
You can of course remap whatever keys you want using keyd, see the github page above.

4 Likes