Palm detection not working properly

@rhz ,
Why don’t you use custom shortcuts for touchpad control?

With ydotool you can make keyboard sequences in a script:
I set up ydotool like this