Here is how you can set it up so that the touchpad is turned off by default. I also include making scripts to toggle it on or off as you need to. You could make icons for this on your desktop or menu if you want.
-
Create a file called touchpad-off. Add this to the file:#!/bin/bashsynclient TouchpadOff=1
-
Change the permissions of the file:$ sudo chown root:root touchpad-off$ sudo chmod 755 touchpad-off
-
Move it to the user bin directory: $sudo mv touchpad-off /usr/local/bin
-
Do steps 1 – 3 for a file called touchpad-on and use 0 for the TouchpadOff value. This way you can toggle it back on if needed.
Now follow these steps in KDE:
-
System Settings – Startup and Shutdown – Autostart – All Scripts
-
Add: /usr/local/bin/touchpad-off to the scripts to run on startup.Also you can just run the command ofsynclient TouchpadOff=1To toggle off, then =0 for toggle on.
No comments:
Post a Comment