I want to launch a program when X (not unity/gnome/etc) starts.
In particular, I want to launch
xset r 105 when
lightdm starts. Is there a way to do it? I tried writing this into
#!/bin/bash xset r 105
but it didn't nothing.
You want to change one of these settings in /etc/lightdm/lightdm.conf:
I think that display-setup-script is what you want to modify. Just set it to your script. Turn that xset command into an executable shell script and stick it into /usr/bin. Then the config file will be: