What version of Ubuntu are you using? The xinput command line tool already does what you want.
-- synaptics driver forgets user settings on resume https://bugs.launchpad.net/bugs/399902 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs