From 2b574833e096d4166547316cc7f4996081e463ea Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 15 Jul 2021 19:02:04 +0200 Subject: [PATCH] cleanup-homedir: remove old screenshots --- .config/systemd/user/cleanup-homedir.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/systemd/user/cleanup-homedir.service b/.config/systemd/user/cleanup-homedir.service index 3eba45e..2176d20 100644 --- a/.config/systemd/user/cleanup-homedir.service +++ b/.config/systemd/user/cleanup-homedir.service @@ -4,4 +4,7 @@ Description=Clean Up Homedir [Service] ExecStart=/usr/bin/find /home/kunsi/Downloads/ -mtime +30 -delete ExecStart=/usr/bin/find /home/kunsi -maxdepth 1 -type d -iname 'tmp.*' -mtime +30 -exec rm -r {} \; +ExecStart=/usr/bin/find /home/kunsi -maxdepth 1 -iname 'screenshot_*' -mtime +30 -delete +ExecStart=/usr/bin/find /home/kunsi/Pictures/ -maxdepth 1 -iname 'screenshot_*' -mtime +30 -delete +ExecStart=/usr/bin/find /home/kunsi/Downloads/ -maxdepth 1 -iname 'screenshot *' -mtime +30 -delete Type=oneshot