Startup Programs
Start programs when you log in
sweets.exec_once starts a program once, when you log in.
sweets.exec_once({ "waybar" })
sweets.exec_once({ "sweetbgd" })
sweets.exec_once({ "veila" })For wallpapers, see sweetbg. For a lock screen, see Veila.
Like spawn, the command is a table: the program, then each argument as its
own string. There is no shell.
sweets.exec_once({ "sweetidle", "--verbose" })For idle, locking, and suspend hooks, see sweetidle.
It also ships a systemd user service. Use the service or exec_once, not both.
Programs start in order and get your
sweets.env variables.
- A reload doesn't start, stop, or restart anything. New entries run at your next login.
- Programs started this way stop when you log out.
On systemd, apps with an XDG autostart entry also start on their own. Start each app in one place only, or it runs twice.