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.

6 Likes

Thanks for this! I'm (thankfully) not in possession of any "Copilot PC" yet, but if any of my future laptops include this, I'll follow this to remap the key. (Though I realized I absolutely never use the right Ctrl or Alt key, except for zoomin in and out in one-handed mode).

1 Like

I'm pretty sure for making things bigger Shift+ + works, and smaller, Shift+ -.

Shift+/- doesn't work in Firefox for me, its always been Control +/- (and control-0 to reset). Maybe in some other apps?

Basically I just wanted a right-hand control key where its always been instead of this Microsoft-demanded and windows-specific copilot key.