Skip to content

Instantly share code, notes, and snippets.

@yuxi-liu-wired
Created March 1, 2026 07:10
Show Gist options
  • Select an option

  • Save yuxi-liu-wired/31bf30df21751d2a6be3f8360224aa3e to your computer and use it in GitHub Desktop.

Select an option

Save yuxi-liu-wired/31bf30df21751d2a6be3f8360224aa3e to your computer and use it in GitHub Desktop.
Kill the Microsoft Copilot key on Linux — make it a real RCtrl with keyd

Microsoft replaced RCtrl with a Copilot key on new laptops. The firmware sends LeftMeta+LeftShift+F23 as a burst of taps, so standard remapping doesn't work.

The fix uses keyd (https://github.com/rvaiya/keyd). Put this in /etc/keyd/default.conf:

[ids]
*

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

Then run sudo keyd reload.

overload(control, noop) intercepts the LeftMeta+LeftShift chord before the individual keys are emitted and makes it a real held Ctrl modifier. rightshift = rightshift preserves normal RShift. The F23 component never matters — the chord fires first.

Tradeoff: real LShift+LMeta combos also become Ctrl. Use RShift+LMeta for those instead.

Tested on LG gram Pro 17 (2025), Linux 6.17, X11. Works on Wayland and virtual console too. See keyd issue #825 (rvaiya/keyd#825) for context — it discusses the problem but doesn't have this solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment