dot/README.md
2024-06-20 17:52:05 -05:00

69 lines
2 KiB
Markdown

# dot
Yet another dotfiles repo! Files are organized by hostname and maintained by [update.sh](./update.sh)
A _relatively_ recent Linux desktop is assumed throughout; PRs are always welcome!
_I use Fedora btw :)_
## Notable entries
### i3/Sway autostarts
_Script:_ [~/.config/sway/scripts/startup.py](./outerheaven.init3.home/.config/sway/scripts/startup.py)
_Config:_ [~/.config/autostart-i3ipc.yml](./outerheaven.init3.home/.config/autostart-i3ipc.yml)
***
Time/date aware _(conditional)_ autostart manager for Sway/i3 window managers.
Should run on-login -- `i3`/`sway` having a config entry:
```bash
~ $ cat ~/.config/sway/config
# Config for sway
#
# See `man 5 sway` for a complete reference.
# [...]
exec 'python3 ~/.config/sway/scripts/startup.py'
```
_Note:_ Avoid `exec_always`; this will repeat your _'wanted'_
entries when reloading the _window manager_ config.
Example `autostart-i3ipc.yml` with in-line comments:
```yaml
---
autostarts:
pre: [] # *always* run, before/blocking others. ie: backup
weekend: [] # blocking Sat/Sun. after 'pre'/before 'common'. ie: backup tier 2
common: # things started every day, after 'pre' - non-blocking
- 'firefox-wayland'
- 'foot'
work: [] # does not execute on weekends; only if within working day/hours
```
Touch `~/.vacation` to skip `work` autostarts; `rm` when work may continue :)
Working days are assumed Monday through Friday. Hours are between 8 AM and 4 PM.
Defined in the `WorkTime` class.
***
### homedir backup
_Script:_ [~/.local/bin/backup_home](./outerheaven.init3.home/.local/bin/backup_home)
_Config:_ `~/.restic_excludes`
***
This will back up `$HOME` _(minus exclusions, of course!)_. Part of
[the autostarts](#i3sway-autostarts).
The meaningful work is given away -- coordinating _[on-login]_:
* `restic`: performs the backup
* `pass`: stores the passphrase given to `restic`; confirmation on hardware token
The exclusions are highly personalized, and as such, _not_ included.
Wants _shell patterns_ split by lines.