Skip to content

Instantly share code, notes, and snippets.

@sixg0000d
Last active March 28, 2024 15:09
Show Gist options
  • Save sixg0000d/c842d52149a2faf006869529d7728ed2 to your computer and use it in GitHub Desktop.
Save sixg0000d/c842d52149a2faf006869529d7728ed2 to your computer and use it in GitHub Desktop.
screenshots cleanup
[Unit]
Description=Cleaning screenshot pictures
[Service]
Type=oneshot
# ExecStart=/usr/bin/find 'Pictures' -name 'Screenshot_[0-9]*_[0-9]*.png' -delete
ExecStart=/usr/bin/find '图片' -name 'Screenshot_[0-9]*_[0-9]*.png' -delete
[Install]
WantedBy=graphical.target
[Unit]
Description=Cleaning screenshot pictures every week
[Timer]
OnCalendar=weekly
Persistent=yes
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment