2025-06-25 15:10:03 +10:00
|
|
|
-- SPDX-License-Identifier: MIT
|
|
|
|
|
--
|
|
|
|
|
-- An example plugin to show how to disable an internal feature.
|
|
|
|
|
--
|
|
|
|
|
-- Typically one would expect the plugin to re-implement the feature
|
|
|
|
|
-- in a more device-specific manner but that's not done here.
|
|
|
|
|
|
|
|
|
|
-- UNCOMMENT THIS LINE TO ACTIVATE THE PLUGIN
|
|
|
|
|
-- libinput:register({1})
|
|
|
|
|
libinput:connect("new-evdev-device", function(device)
|
|
|
|
|
local udev_info = device:udev_properties()
|
|
|
|
|
if udev_info["ID_INPUT_TOUCHPAD"] then
|
2025-10-27 15:29:37 +10:00
|
|
|
libinput:log_info("Disabling palm detection on " .. device:name())
|
2025-06-25 15:10:03 +10:00
|
|
|
device:disable_feature("touchpad-palm-detection")
|
|
|
|
|
end
|
|
|
|
|
end)
|