diff options
| author | 2026-05-13 13:43:35 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:35 +0100 | |
| commit | 54eacef87b906835f9778d9c4b02128398bf88d0 (patch) | |
| tree | 3d6c82d81c4e7b43fcb8b5b628b038eccac5fad2 /etc/systemd | |
| parent | bd50d1c05aceb1eecffcb479ab2bf8baa56fe078 (diff) | |
| download | dotfiles-54eacef87b906835f9778d9c4b02128398bf88d0.tar.gz dotfiles-54eacef87b906835f9778d9c4b02128398bf88d0.tar.bz2 dotfiles-54eacef87b906835f9778d9c4b02128398bf88d0.zip | |
feat(lostfiles): weekly unowned-files refresh + waybar reminder
Wiring (mirrors arch-audit, with weekly cadence and Nice=19/idle I/O):
lostfiles.timer (weekly, Persistent=true, RandomizedDelaySec=1h)
→ lostfiles.service
→ /run/lostfiles.txt (default mode — strict produces too many
false positives for a passive reminder)
→ custom/lostfiles waybar module (interval 600s)
→ mako 'normal' once/7d while count > 0
→ on-click: `ghostty -e nvim -R /run/lostfiles.txt`
Default mode (no `strict` argument) is intentional: it already filters
the package's curated false-positive list at /etc/lostfiles.conf, which
is what we want for a low-noise weekly nudge. Switching to `strict` is
a one-line change in lostfiles.service if signal-vs-noise tilts later.
Diffstat (limited to 'etc/systemd')
| -rw-r--r-- | etc/systemd/system/lostfiles.service | 10 | ||||
| -rw-r--r-- | etc/systemd/system/lostfiles.timer | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/etc/systemd/system/lostfiles.service b/etc/systemd/system/lostfiles.service new file mode 100644 index 0000000..4d94a18 --- /dev/null +++ b/etc/systemd/system/lostfiles.service @@ -0,0 +1,10 @@ +[Unit] +Description=Refresh lostfiles report at /run/lostfiles.txt +Documentation=man:lostfiles(1) +ConditionPathExists=/usr/bin/lostfiles + +[Service] +Type=oneshot +Nice=19 +IOSchedulingClass=idle +ExecStart=/bin/sh -c '/usr/bin/lostfiles >/run/lostfiles.txt.tmp && mv /run/lostfiles.txt.tmp /run/lostfiles.txt' diff --git a/etc/systemd/system/lostfiles.timer b/etc/systemd/system/lostfiles.timer new file mode 100644 index 0000000..e99d4be --- /dev/null +++ b/etc/systemd/system/lostfiles.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Weekly lostfiles report refresh + +[Timer] +OnCalendar=weekly +AccuracySec=12h +Persistent=true +RandomizedDelaySec=1h + +[Install] +WantedBy=timers.target |
