Pesky Touchpad

Hey all,

So i tend to mostly work off of laptops and lately i have been using a USB mouse but in doing so the touchpad was still enabled and if i moved the wrong way it would click so i decided to write this little script that when set in alias in either the bashrc or zshrc files could very quickly enable / disable the touchpad.

Here is the script.

And to add this to your rc files just add something similar to this alias:
alias tp='/path/to/touchpad.sh'

I just set it as “tp” in alias so it was quick and fast.

«

    Leave a Reply

    Your email address will not be published. Required fields are marked *