blob: 6ad63e79f4f2cd46c8d6275e5b0f4413e9cf297d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
;; -*- mode: lisp -*-
;; vim: set ft=lisp :
;;
;; old-installers.conf — clean up old installers with (age ...) and (delete).
;;
;; Demonstrates: (type package), (age ...) by modification time, and
;; (delete) — which moves a matched file to the desktop trash
;; ($XDG_DATA_HOME/Trash), NOT a permanent delete; recover a mistake from
;; there. Use (delete permanent) instead only if you really want an unlink
;; that undo cannot reverse — see krino.conf(5), ACTIONS.
;;
;; To use: copy this to dirs/<name>.conf, fix (path ...) below, and add
;; <name> to (include ...) in krino.conf. A short tutorial on the syntax is
;; docs/sexp-primer.md in the source repository, installed alongside this
;; file at $PREFIX/share/doc/krino/sexp-primer.md; every form is described
;; in krino.conf(5).
(path "~/Downloads") ; CHANGE THIS to the directory to sort
;; Leave partial downloads and dotfiles alone.
(ignore "*.part" "*.crdownload" "*.aria2" ".*")
(rule "old-installers"
(when (type package)
(age > 90d))
(delete))
|