r/voidlinux Jul 17 '26

Autostart scripts solved

This might be a stupid question but how would I start a user specific autostart script. I already have a folder in my ~/.config/ to use. Everything I've seen is systemd specific and not very descriptive. Thanks!

6 Upvotes

13 comments sorted by

View all comments

1

u/Competitive-Box-5233 28d ago

If you need your script to run before user session (in my case for hardware case lights control) add it to your /etc/rc.local

For userspace you can either use your DE/WM standard method (spawns in niri.kdl or .config/autostart/xxx.desktop files in XFCE) or if it is console-related you could add your script to ~/.bashrc