outerheaven.init3.home | ||
README.md | ||
update.sh |
dot
Yet another dotfiles repo! Files are organized by hostname and maintained by update.sh
A relatively recent Linux desktop is assumed throughout; PRs are always welcome! I use Fedora btw :)
Notable entries
i3/Sway auto-start script
Script: .config/sway/scripts/startup.py
Config: ~/.config/autostart-i3ipc.yml
Time/date aware (conditional) autostart manager for Sway/i3 window managers.
Should run on-login:
~ $ 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'
Config example with in-line comments:
---
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
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.
These parameters may be changed in the WorkTime
class.
homedir backup script
Script: ~/.local/bin/backup_home
Config: ~/.restic_excludes
This will back up $HOME
(minus exclusions, of course); part of [the auto-starts]
(#i3sway-auto-start-script)
The meaningful work is given away, coordinating [on-login]:
restic
: performs the backuppass
: stores the passphrase given torestic
; confirmation on hardware token
The exclusions file is highly personalized, and as such, not included. Should be shell patterns split by lines.