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
|
|
|
|
2024-06-22 16:49:21 +00:00
|
|
|
## Quick Links
|
|
|
|
|
|
|
|
`.config`/system:
|
|
|
|
|
|
|
|
* [workstation](./outerheaven.init3.home/.config)
|
|
|
|
|
2024-06-19 12:59:53 +00:00
|
|
|
## Notable entries
|
|
|
|
|
2024-06-20 22:45:57 +00:00
|
|
|
### i3/Sway autostarts
|
2024-06-19 12:59:53 +00:00
|
|
|
|
2024-06-20 22:08:25 +00:00
|
|
|
_Script:_ [~/.config/sway/scripts/startup.py](./outerheaven.init3.home/.config/sway/scripts/startup.py)
|
2024-06-20 22:03:57 +00:00
|
|
|
_Config:_ [~/.config/autostart-i3ipc.yml](./outerheaven.init3.home/.config/autostart-i3ipc.yml)
|
2024-06-20 21:55:46 +00:00
|
|
|
|
2024-06-20 22:03:57 +00:00
|
|
|
Time/date aware _(conditional)_ autostart manager for Sway/i3 window managers.
|
|
|
|
|
2024-06-20 22:29:14 +00:00
|
|
|
Should run on-login -- `i3`/`sway` having a config entry:
|
2024-06-20 21:55:46 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
~ $ cat ~/.config/sway/config
|
|
|
|
# Config for sway
|
|
|
|
#
|
|
|
|
# See `man 5 sway` for a complete reference.
|
|
|
|
# [...]
|
|
|
|
exec 'python3 ~/.config/sway/scripts/startup.py'
|
|
|
|
```
|
|
|
|
|
2024-06-21 18:39:27 +00:00
|
|
|
Use `exec` as shown; avoid `exec_always`. Your _'wanted'_
|
|
|
|
entries will repeat, otherwise, if reloading i3/Sway.
|
2024-06-20 22:29:14 +00:00
|
|
|
|
2024-06-20 22:58:09 +00:00
|
|
|
Example `autostart-i3ipc.yml`:
|
2024-06-20 21:55:46 +00:00
|
|
|
|
|
|
|
```yaml
|
|
|
|
---
|
|
|
|
autostarts:
|
2024-06-20 22:19:59 +00:00
|
|
|
pre: [] # *always* run, before/blocking others. ie: backup
|
|
|
|
weekend: [] # blocking Sat/Sun. after 'pre'/before 'common'. ie: backup tier 2
|
2024-06-20 22:34:42 +00:00
|
|
|
common: # things started every day, after 'pre' - non-blocking
|
|
|
|
- 'firefox-wayland'
|
|
|
|
- 'foot'
|
2024-06-20 22:19:59 +00:00
|
|
|
work: [] # does not execute on weekends; only if within working day/hours
|
2024-06-20 21:55:46 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
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.
|
2024-06-20 22:18:11 +00:00
|
|
|
Defined in the `WorkTime` class.
|
2024-06-20 21:37:50 +00:00
|
|
|
|
2024-06-20 22:52:05 +00:00
|
|
|
***
|
|
|
|
|
2024-06-20 22:22:27 +00:00
|
|
|
### homedir backup
|
2024-06-20 21:37:50 +00:00
|
|
|
|
2024-06-20 22:04:37 +00:00
|
|
|
_Script:_ [~/.local/bin/backup_home](./outerheaven.init3.home/.local/bin/backup_home)
|
2024-06-20 22:03:57 +00:00
|
|
|
_Config:_ `~/.restic_excludes`
|
2024-06-20 21:39:12 +00:00
|
|
|
|
2024-06-20 22:18:11 +00:00
|
|
|
This will back up `$HOME` _(minus exclusions, of course!)_. Part of
|
2024-06-20 22:45:57 +00:00
|
|
|
[the autostarts](#i3sway-autostarts).
|
2024-06-20 21:37:50 +00:00
|
|
|
|
2024-06-20 22:58:09 +00:00
|
|
|
The important parts are managed by others:
|
2024-06-20 21:37:50 +00:00
|
|
|
|
2024-06-20 22:58:09 +00:00
|
|
|
* `restic`: performs the backup to `$BACKUP_DEST` or `/raid1-evos/backups/restic`
|
|
|
|
_(if unset)_
|
2024-06-20 21:55:46 +00:00
|
|
|
* `pass`: stores the passphrase given to `restic`; confirmation on hardware token
|
2024-06-20 22:03:57 +00:00
|
|
|
|
2024-06-20 22:18:11 +00:00
|
|
|
The exclusions are highly personalized, and as such, _not_ included.
|
|
|
|
Wants _shell patterns_ split by lines.
|