1
0

10-disable-feature.lua 597 B

12345678910111213141516
  1. -- SPDX-License-Identifier: MIT
  2. --
  3. -- An example plugin to show how to disable an internal feature.
  4. --
  5. -- Typically one would expect the plugin to re-implement the feature
  6. -- in a more device-specific manner but that's not done here.
  7. -- UNCOMMENT THIS LINE TO ACTIVATE THE PLUGIN
  8. -- libinput:register({1})
  9. libinput:connect("new-evdev-device", function(device)
  10. local udev_info = device:udev_properties()
  11. if udev_info["ID_INPUT_TOUCHPAD"] then
  12. libinput:log_info("Disabling palm detection on " .. device:name())
  13. device:disable_feature("touchpad-palm-detection")
  14. end
  15. end)