Last active
August 11, 2024 11:39
-
-
Save rickybrent/811ca432b87c3419cf353be6947e9caa to your computer and use it in GitHub Desktop.
Remap "copilot" key to right meta on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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