Introduction
Recently, after the boom of ChatGPT, many new laptops are released with a dedicated co-pilot key. This key replaces,
- Right Menu key and
- Right Control key
It sends a combination of 3 sequences
- Left Windows Key
- Left Shift Key
- F23 Key
In case, you want to remap this Copilot key to right control key, use below hacks.
On Linux
On Linux systems, keyd
program can be used to remap the key combinations to send Right Control
key. It is a popular key remapping service. To compile keyd
, you may need some additional programs like make
, gcc
. Use below commands to install it.
sudo apt install make gcc -y
git clone https://github.com/rvaiya/keyd
cd keyd
make && sudo make install
sudo systemctl enable keyd && sudo systemctl start keyd
Now keyd
is up, lets do some configuration. Create /etc/keyd
directory if it doesn't exist along with config file.
sudo mkdir /etc/keyd
sudo vim /etc/keyd/default.conf
Add below content in file
[ids]
*
[main]
# Maps capslock to escape when pressed and control when held.
# capslock = overload(control, esc)
# Remaps the escape key to capslock
# esc = capslock
# Remaps copilot key to right control
leftmeta+leftshift = rightcontrol
Finally, reload service.
sudo keyd reload
On Windows
On windows, you can use PowerToys
software. It can be downloaded from github or windows app store. Once it is installed, Go to Keyboard Manager
and remap Copilot
key to use Right Control