A smart but also lazy login autostart manager for i3/Sway.
Find a file
2023-10-14 22:59:26 -05:00
.github/workflows requirement: fix libsystemd-dev placement 2023-10-14 22:59:26 -05:00
README.md readme: -repetition/spacing 2023-10-14 22:32:00 -05:00
requirements.txt add requirements for linting 2023-10-14 22:49:55 -05:00
startup.py script: move default config out of sway dir 2023-10-14 22:29:45 -05:00

sway-autostart-i3ipc

A smart but also lazy login autostart manager for i3/Sway. Will conditionally exec other things defined in a YML dict.

Required i3/Sway config line:

    exec path/to/startup.py

Work days may be temporarily disabled by creating and removing ~/.vacation when appropriate.

The config may be chosen with -c path/to/autostart.yml.

The default is XDG_CONFIG_HOME/autostart-i3ipc.yml (typically in ~/.config)

Config sample

---
autostarts:
  pre: []  # blocking tasks that run every day, before any other section. intended for backups/updates
  common: []  # non-blocking tasks that run every day
  weekend: []  # blocking tasks for weekends, after 'pre' but before 'common'
  work: []  # non-blocking tasks run if Monday through Friday between 8AM - 4PM