Skip to content

Instantly share code, notes, and snippets.

@rickybrent
Last active August 11, 2024 11:39
Show Gist options
  • Save rickybrent/811ca432b87c3419cf353be6947e9caa to your computer and use it in GitHub Desktop.
Save rickybrent/811ca432b87c3419cf353be6947e9caa to your computer and use it in GitHub Desktop.
Remap "copilot" key to right meta on Linux
#!/bin/bash
# Remap "copilot" to right meta key (aka "Right Super" for gnome) using https://github.com/KarsMulder/evsieve
sudo setkeycodes 6e 193
sudo /usr/local/bin/evsieve \
--input "/dev/input/by-path/platform-i8042-serio-0-event-kbd" grab persist=full \
--hook key:leftmeta key:leftshift key:f23 sequential period=0.032 send-key=key:rightmeta \
--withhold key:leftmeta key:leftshift key:f23 \
--output create-link="/dev/input/by-path/platform-i8042-serio-0-event-kbd-evsieve"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment