Home

Awesome

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.

Information for users of mutter version 3.36.1 or newer

This is not needed anymore if you use mutter version 3.36.1 or newer. There it is possible to directly enable middle click emulation:

gsettings set org.gnome.desktop.peripherals.mouse middle-click-emulation true

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