How to disable/enable touchpad on Linux

Posted in category linux on 2018-07-19
Tags: linux, touchpad

Sometimes it is not easy to disable/enable touchpad on a laptop running Linux. Certainly that was the case for my new Dell XPS. So, here is what I came up with to make my life easier:

To disable all touchpad devices:

To enable all touchpad devices:

It might then be a good idea to wrap these commands into simple bash -c "<cmd>" and map it to global hotkeys.