hello world, i first started with linux almost 4 years ago, xfce always end up surprising me with its high performance.
with the only drawback that it does not have by default a way to disable the touchpad with the fn keys of the laptops.
or at least not on my computers.
today I decided to publish a small solution to this little problem.
It is a script that acts as a touchpad switch using any key, but I recommend using the one we have by default in our computer model.
note:
-You must manually deactivate and reactivate the touch pad from the configuration menu to wake up the module that controls it, otherwise the script will not work (this is necessary only once). settings> mouse and touch panel> devices> activate this device
-copy and paste the content of the script in an empty file and grant execution permission.
-create a keyboard shortcut by calling the script in: settings> keyboard> application shortcuts> add
-the name of the touchpad device could vary, I’m not sure about this part but you can check the name of your device by running: xfconf-query -c pointers -l
I just tried your suggestion, unable to run the script, anyway you gave me an idea with this directory: /usr/local/bin/toggle-touch.
the script can be called by any user
The last step to end this little journey is: that the keyboard shortcut is configured by default for any user.
Is there a way for new users to default to the keyboard shortcut “XF86TouchpadToggle” = fn + f5 to call the script?
Thanks for your suggestion, but I am not looking for the script to start automatically when I turn on the computer, on the other hand I find it interesting to be able to distribute a script to new users, I will use that function some day
hahaha okay, it has worked, I have marked the answer that served me the most, I preferred the second answer because I think that with that option the script and the configuration in general would survive an update, even a new installation as long as we have /home in another partition and without formatting.
In a few minutes I will prepare the tutorial, in this publication so that other users can replicate it.