What is the proper place to put an X-related startup script? In the past I have tended to just add custom lines to .xinitrc, but what is a more correct (and WM/DE-agnostic) way?
The example I'm thinking of is just turning off the tracker pad on my laptop (synclient TouchpadOff=1), but there could be others eventually.
startup script location
-
- Posts: 539
- Joined: 20. Jun 2016, 20:15
Re: startup script location
This doesn't actually answer your question, but in this specific case if possible I'd just blacklist the module that drives the touchpad.
For instance here (Lenovo Thinkad W520): "blacklist psmouse". Fortunately my USB mouse still works after that.
For instance here (Lenovo Thinkad W520): "blacklist psmouse". Fortunately my USB mouse still works after that.
Re: startup script location
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
― George Orwell, 1984
Re: startup script location
You can put .desktop files in ~/.config/autostart/ and all XDG-compliant DEs/WMs will use them. That is not universal though, as not all WMs are XDG-compliant.