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

11 lines
514 B
SYSTEMD
Raw Normal View History

[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
ExecStart=/usr/bin/find /home/kunsi/Downloads/ -maxdepth 1 -iname 'screenshot *' -mtime +30 -delete
Type=oneshot