speedwm-personal/autostart.h
2022-11-28 16:35:47 +01:00

27 lines
924 B
C

/* Anything in here will automatically start before speedwm
* I use it to start my status bar and some other stuff, though.
*
* If you wish to run more commands, add a line below.
*
* Syntax: "shell, "-c", "<command>", NULL,"
*
* "shell" is automatically defined as your shell.
*
* If you need help, run speedwm-keybinds.
* Once you're done with your edits, run 'make clean install'.
*************************************************************/
static const char *autostart[] = {
/* Run the built in status bar */
shell, "-c", "pkill status; status &", NULL,
/* Run the wallpaper tool if it exists */
shell, "-c", "command -v speedwm-swal > /dev/null && $HOME/.config/speedwm/swal/swal_wm && command -v libspeedwm > /dev/null && libspeedwm --perform core_wm_restart", NULL,
/* Autostart script, if it exists */
shell, "-c", "$HOME/.config/speedwm/autostart.sh", NULL,
NULL
};