Created
August 26, 2015 11:55
-
-
Save ralt/5c7a5c571f9df9dfac8c to your computer and use it in GitHub Desktop.
Always have a symlink to your last screenshot
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
#!/bin/bash | |
inotifywait -m ~/Pictures -e create -e moved_to | | |
while read path action file; do | |
if [ "$file" != "last-screenshot.png" ]; then | |
ln -sfn "$path$file" ~/Pictures/last-screenshot.png | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this in your autostart scripts and let it run forever.