readme: expandables :)
This commit is contained in:
parent
e350d037b2
commit
b416806920
1 changed files with 45 additions and 27 deletions
62
README.md
62
README.md
|
@ -9,36 +9,54 @@ _I use Fedora btw :)_
|
||||||
|
|
||||||
### i3/Sway auto-start script
|
### 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)
|
<details>
|
||||||
|
<summary><i>Click to expand...</i></summary>
|
||||||
|
Time/date aware autostart manager. The script: [.config/sway/scripts/startup.py](./outerheaven.init3.home/.config/sway/scripts/startup.py)
|
||||||
|
|
||||||
This is run by Sway on-login:
|
This is run by Sway on-login:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
~ $ cat ~/.config/sway/config
|
~ $ cat ~/.config/sway/config
|
||||||
# Config for sway
|
# Config for sway
|
||||||
#
|
#
|
||||||
# See `man 5 sway` for a complete reference.
|
# See `man 5 sway` for a complete reference.
|
||||||
# [...]
|
# [...]
|
||||||
# run script which handles conditional/timely autostarts. uses dict w/ this structure:
|
# run script which handles conditional/timely autostarts. uses dict w/ this structure:
|
||||||
# {'autostarts': { 'pre': [], 'weekend': [], 'common': [], 'work': []}}
|
# {'autostarts': { 'pre': [], 'weekend': [], 'common': [], 'work': []}}
|
||||||
exec 'python3 ~/.config/sway/scripts/startup.py'
|
exec 'python3 ~/.config/sway/scripts/startup.py'
|
||||||
```
|
```
|
||||||
|
|
||||||
This reads [autostart-i3ipc.yml](./outerheaven.init3.home/.config/autostart-i3ipc.yml)
|
This reads [autostart-i3ipc.yml](./outerheaven.init3.home/.config/autostart-i3ipc.yml)
|
||||||
_(in `~/.config`)_ to know what programs to `exec`.
|
_(in `~/.config`)_ to know what programs to `exec`.
|
||||||
|
|
||||||
Example with in-line comments:
|
Example with in-line comments:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
autostarts:
|
autostarts:
|
||||||
pre: [] # *always* run, before/blocking others. ie: backup
|
pre: [] # *always* run, before/blocking others. ie: backup
|
||||||
weekend: [] # blocking Sat/Sun. after 'pre'/before 'common'. ie: backup tier 2
|
weekend: [] # blocking Sat/Sun. after 'pre'/before 'common'. ie: backup tier 2
|
||||||
common: [] # things started every day, after 'pre' - non-blocking
|
common: [] # things started every day, after 'pre' - non-blocking
|
||||||
work: [] # does not execute on weekends; only if within working day/hours
|
work: [] # does not execute on weekends; only if within working day/hours
|
||||||
```
|
```
|
||||||
|
|
||||||
Touch `~/.vacation` to skip `work` autostarts; `rm` when work may continue :)
|
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.
|
Working days are assumed Monday through Friday. Hours are between 8 AM and 4 PM.
|
||||||
These parameters may be changed in the `WorkTime` class.
|
These parameters may be changed in the `WorkTime` class.
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### homedir backup script
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><i>Click to expand...</i></summary>
|
||||||
|
Intended as part of the auto-starts above, I have [written a script](./outerheaven.init3.home/.local/bin/backup_home)
|
||||||
|
to back up `$HOME` _(minus exclusions, of course)!_
|
||||||
|
|
||||||
|
The meaningful work is given away to other utilities:
|
||||||
|
|
||||||
|
* `restic`: performs the backup
|
||||||
|
* `pass`: stores the passphrase given to `restic`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
Loading…
Reference in a new issue