My display is cracked and it’s making the touchscreen go haywire occasionally so I need to disable it. Is there a way via libinput options or some other way to disable the touchscreen? It looks like there’s only nixos options for touchpad and mouse but no touchscreen options.
Oh I forgot to reply to this
I am doing something similar with this script, but it is a bit complicated (to be able to click on a desktop widget to toggle it on/off).
Basically what you need is to add something like this to your startup scripts: Just find the device name on
xinput command’s output and send an
xinput --disable "name of the device".
Not directly what you asked, but if you want the touch screen disabled permanently, most BIOS settings allow it to be switched off.