Turn Laptop Trackpad Off and On by Sensing USB Mouse Plugged In or Not on Linux
So I am working on making my laptop even more enjoyable to use. I originally wrote a script that would require me to decide whether or not my trackpad was turned on or off. You can get my script to turn trackpad on and off in ubuntu linux here
I wanted to make it more automated and be able to turn it into a daemon on startup. You can find a discussion on how to run a script at startup here.
Below is what seems to be working for me and detecting my USB mouse.