Page 1 of 1

startup script location

Posted: 19. Sep 2016, 05:26
by mimosa
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.

Re: startup script location

Posted: 19. Sep 2016, 06:46
by DidierSpaier
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.

Re: startup script location

Posted: 19. Sep 2016, 10:25
by laprjns

Re: startup script location

Posted: 19. Sep 2016, 19:36
by gapan
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.