Skip to content

gaul/libinput-force-middle-click-emulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • MIT

About

force libinput to emulate a middle click when pressing left and right buttons simultaneously

Topics

Resources

License

Stars

Watchers

Forks