libinput/plugins
Peter Hutterer 1dcf630584 plugins: add an example plugin on how to reconfigure the Copilot key
As Microsoft has decreed, that key sends LEFTMETA + LEFTSHIFT + F23
(usually across multiple frames) and the then the same in reverse when
released.

xkeyboard-config 2.44 maps this sequence by default to XF86Assistant but
for the use-cases where this does not work reshuffling the whole event
sequence is the best approach and that can easily be done with a plugin.

Note that this is the minimum effort plugin - it works for one
keyboard at at time (duplicate the plugin if two keyboards are needed,
or remove the vid/pid check) and it does *not* intercept the meta/shift
key presses and delay them, it simply releases them on F23 and then
replays the new sequence. Good enough for an example plugin.

Example sequence produces shift + a on press and releases a + shift on
release. Holding the key will thus produce AAAAAAAAA which is an
excellent summary of how this key was designed.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1352>
2025-11-03 03:57:00 +00:00
..
10-copilot-key-override.lua plugins: add an example plugin on how to reconfigure the Copilot key 2025-11-03 03:57:00 +00:00
10-delay-motion.lua plugins: add support for lua plugins to change evdev event streams 2025-08-01 16:04:09 +10:00
10-disable-feature.lua lua: drop the log global in favor of libinput:log_* 2025-10-30 13:12:50 +10:00
10-dwt.lua lua: drop the log global in favor of libinput:log_* 2025-10-30 13:12:50 +10:00
10-example.lua lua: drop the log global in favor of libinput:log_* 2025-10-30 13:12:50 +10:00
10-logitech-mx-master-horiz-scroll.lua plugins: update plugins for the current API 2025-10-23 13:28:16 +00:00
10-pointer-go-faster.lua plugins: update plugins for the current API 2025-10-23 13:28:16 +00:00
10-pointer-go-slower.lua plugins: update plugins for the current API 2025-10-23 13:28:16 +00:00
meson.build plugins: add an example plugin on how to reconfigure the Copilot key 2025-11-03 03:57:00 +00:00