diff --git a/dot_config/systemd/user/clear-downloads.service b/dot_config/systemd/user/clear-downloads.service new file mode 100644 index 0000000..dd0ebd8 --- /dev/null +++ b/dot_config/systemd/user/clear-downloads.service @@ -0,0 +1,7 @@ +[Unit] +Description=Delete downloads older than 24h + +[Service] +Type=oneshot +ExecStart=/home/joe/.local/bin/clear-downloads + diff --git a/dot_config/systemd/user/clear-downloads.timer b/dot_config/systemd/user/clear-downloads.timer new file mode 100644 index 0000000..44edb35 --- /dev/null +++ b/dot_config/systemd/user/clear-downloads.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run clear-downloads service once a day +Requires=clear-downloads.service + +[Timer] +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/dot_config/systemd/user/timers.target.wants/symlink_clear-downloads.timer b/dot_config/systemd/user/timers.target.wants/symlink_clear-downloads.timer new file mode 100644 index 0000000..1bb40c1 --- /dev/null +++ b/dot_config/systemd/user/timers.target.wants/symlink_clear-downloads.timer @@ -0,0 +1 @@ +/home/joe/.config/systemd/user/clear-downloads.timer