update (based on help page)

This commit is contained in:
Josh Lay 2023-10-14 21:48:56 -05:00
parent b4a5dad35b
commit 46b6536987
Signed by: jlay
GPG key ID: B265E45CACAD108A

View file

@ -1,26 +1,27 @@
# autostart-i3ipc # autostart-i3ipc
```bash
~ $ .config/sway/scripts/startup.py -h
usage: startup.py [-h] [-c CONFIG]
A smart but also lazy login autostart manager for i3/Sway. A smart but also lazy login autostart manager for i3/Sway.
Will conditionally exec other things defined in a YML dict. ie: every day, work days, or weekends Will conditionally exec other things defined in a YML dict.
ie: every day, work days, or weekends
Required i3/Sway config line: Required i3/Sway config line:
exec .config/sway/scripts/startup.py exec .config/sway/scripts/startup.py
Config sample: ## Config sample
```yaml
--- ---
autostarts: autostarts:
pre: [] # blocking tasks that run every day, before any other section. intended for backups/updates pre: [] # blocking tasks that run every day, before any other section. intended for backups/updates
common: [] # non-blocking tasks that run every day common: [] # non-blocking tasks that run every day
weekend: [] # blocking tasks for weekends, after 'pre' but before 'common' weekend: [] # blocking tasks for weekends, after 'pre' but before 'common'
work: [] # non-blocking tasks run if Monday through Friday between 8AM - 4PM work: [] # non-blocking tasks run if Monday through Friday between 8AM - 4PM
```
options: ### Options
-h, --help show this help message and exit
```shell
-c CONFIG, --config CONFIG -c CONFIG, --config CONFIG
Path to the YML configuration file. (default: /home/user/.config/sway/autostart.yml) Path to the YML configuration file. (default: /home/user/.config/sway/autostart.yml)
``` ```