I would like to turn my touchpad off when my desktop starts. How can I do that? I already found that the following script outputs 14:
xinput list | grep -Eo 'TouchPad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'
But how can I configure my computer such that the script
xinput set-prop 14 "Device Enabled" 0
would be run when starting XFCE?
Type:
Then open the tab "Application Autostart" and click on 'Add'. Alternately you can create a .desktop file and put it in ~/.config/autostart.
A simple .desktop file could be: