Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3328

Graphical Environments & Desktops • [Solved] XFCE: Rebind stupid 'AI Copilot' key on laptop keyboard to the 'context menu' key

$
0
0
I got a new laptop for christmas, and it turns out that Microsoft is forcing manufacturers to get right of the right-ctrl or context menu key and replace it with an "AI Copilot" key. Their implementation of this feature is weird and messed up too - when you press the key it's acting like a hard-coded key combination, sending three keyboard events at once.

I actually use the context menu key, so I put the effort into working out how to fix this properly. Here is a solution I found that works well for me on XFCE.

Install 'keyd':

Code:

sudo apt-get install keyd
Create the configuration file for keyd at /etc/keyd/default.conf, and put this in it:

Code:

[ids]*[main]leftmeta+leftshift+f23 = menu
After saving the configuration file for keyd, restart keyd:

Code:

sudo systemctl restart keyd
Create the file '~/.Xmodmap' and put this in it:

Code:

keycode 147 = Menu
Log out of your xfce and log back in, or if you don't want to do that, just open a terminal and run this xmodmap command:

Code:

xmodmap -e "keycode 147 = Menu"
Let me know if this works for you.

Statistics: Posted by dust hill resident — 2025-12-26 16:57



Viewing all articles
Browse latest Browse all 3328

Trending Articles