force libinput to emulate a middle click when pressing left and right buttons simultaneously
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.txt
Makefile
README.md
hook.c

README.md

libinput-force-middle-click-emulation

Force libinput to emulate a middle click when pressing left and right buttons simultaneously. This allows GNOME Wayland (and other Wayland compositors that do not expose libinput configuration) to configure the existing libinput functionality.

Installation

Build hook.so then configure libinput to LD_PRELOAD it:

make
echo 'export LD_PRELOAD="$LD_PRELOAD /path/to/hook.so"' | sudo tee -a /etc/profile.d/libinput.sh

Log out and log in to enable.

References

License

  • MIT