I'd like to change the Tapping Button Map to LMR when using Wayland. Since there is no way to set that via GUI or gsettings, I wrote a little script using python-libinput (https://pypi.python.org/pypi/python-libinput): from libinput import LibInput from libinput.constant import TapButtonMap li=LibInput() device=li.path_add_device('/dev/input/event7') print device.config_tap_get_button_map() print device.config_tap_set_button_map(TapButtonMap.LMR) print device.config_tap_get_button_map() li.path_remove_device(device) It returns this output (when run as root): TapButtonMap.LRM ConfigStatus.SUCCESS TapButtonMap.LMR Unfortunately tapping with two fingers still produces a right click and no middle click. After reading the FAQ multiple times, I have the suspicion that this is not supposed to work and only weston is actually allowed and able to change the configuration. Is that accurate or is something wrong with my approach, python-libinput or libinput itself?
Addition: I'm using libinput 1.8.2-1ubuntu2 on Ubuntu 17.10.
yeah, you're creating a second context here. and since libinput doesn't modify the devices, it's just an independent context that doesn't affect the one in the compositor (weston in this case?). Unless your compositor provides some way of setting this, not much you can do here.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.