dot/README.md

45 lines
1.4 KiB
Markdown
Raw Normal View History

2024-06-18 11:14:43 +00:00
# dot
2024-06-19 11:33:28 +00:00
Yet another dotfiles repo! Files are organized by hostname and maintained by [update.sh](./update.sh)
2024-06-18 11:14:43 +00:00
2024-06-19 11:33:28 +00:00
A _relatively_ recent Linux desktop is assumed throughout; PRs are always welcome!
_I use Fedora btw :)_
2024-06-19 12:59:53 +00:00
## Notable entries
### i3/Sway auto-start script
Time/date aware autostart manager. The script: [.config/sway/scripts/startup.py](./outerheaven.init3.home/.config/sway/scripts/startup.py)
2024-06-19 13:07:53 +00:00
This is run by Sway on-login:
```bash
~ $ cat ~/.config/sway/config
# Config for sway
#
# See `man 5 sway` for a complete reference.
# [...]
# run script which handles conditional/timely autostarts. uses dict w/ this structure:
# {'autostarts': { 'pre': [], 'weekend': [], 'common': [], 'work': []}}
exec 'python3 ~/.config/sway/scripts/startup.py'
```
This reads [autostart-i3ipc.yml](./outerheaven.init3.home/.config/autostart-i3ipc.yml)
_(in `~/.config`)_ to know what programs to `exec`.
Example with in-line comments:
2024-06-19 12:59:53 +00:00
```yaml
---
autostarts:
pre: [] # *always* run, before/blocking others. ie: backup
2024-06-19 13:01:43 +00:00
weekend: [] # blocking Sat/Sun. after 'pre'/before 'common'. ie: backup tier 2
2024-06-19 12:59:53 +00:00
common: [] # things started every day, after 'pre' - non-blocking
work: [] # does not execute on weekends; only if within working day/hours
```
2024-06-19 13:07:53 +00:00
Touch `~/.vacation` to skip `work` autostarts; `rm` when work may continue :)
2024-06-19 12:59:53 +00:00
Working days are assumed Monday through Friday. Hours are between 8 AM and 4 PM.
These parameters may be changed in the `WorkTime` class.