dotfiles/.config/systemd/user/cleanup-homedir.service

9 lines
412 B
Desktop File

[Unit]
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
Type=oneshot