Last active
March 28, 2024 15:09
-
-
Save sixg0000d/c842d52149a2faf006869529d7728ed2 to your computer and use it in GitHub Desktop.
screenshots cleanup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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