diff --git a/config.def.h b/config.def.h index 4b82d48..f2dfbbb 100644 --- a/config.def.h +++ b/config.def.h @@ -135,15 +135,10 @@ static const char *audiomixercmd[] = TERMWRAP("pulsemixer"); static const char *passmancmd[] = SHWRAP("~/Sources/Scripts/bemenu/passman/script.zsh"); /* Autostart */ -// NOTE: While this is a ugly hack, unfortunately it is not yet possible to pass the desired IPC socket path + WAYLAND_DISPLAY as a parameter, but it would be highly appreciated -// Once associating/grouping services by a well-known path is easily possible without passing env via alternative ways, this should go away +// Note: This is intended to store the env under /run/user/$UID/session-0/ for the user tree to use in starting other services that are independently supervised static const char *const autostart[] = { - "waybar", NULL, - "kanshi", NULL, - "swayidle", "-w", - "timeout", "300", LOCKER, - "timeout", "600", "swaymsg \"output * power off\"", - "resume", "swaymsg \"output * power on\"", NULL, + "importas", "SESSION_ENV", "SESSION_ENV", + "s6-dumpenv", "${SESSION_ENV}/", NULL, NULL /* terminate */ };