Last active
March 8, 2024 14:10
-
-
Save schnapster/4a07648b28c63faac51955549b520b24 to your computer and use it in GitHub Desktop.
David Hasselhoff straight to your Wallpaper
This file contains hidden or 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
#!/bin/bash | |
WORK_DIR=/tmp | |
curl -s https://gist.githubusercontent.com/schnapster/4a07648b28c63faac51955549b520b24/raw/thehoff.jpg -o "$WORK_DIR/thehoff.jpg" | |
# Every Friday at 11:05 | |
(crontab -l ; echo "5 11 * * 5 open https://www.youtube.com/watch?v=dQw4w9WgXcQ") | sort - | uniq - | crontab - | |
osascript <<END | |
tell application "Finder" | |
set desktop picture to POSIX file "$WORK_DIR/thehoff.jpg" | |
end tell | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment