Created
September 23, 2018 04:19
-
-
Save steelcowboy/f63b1158ef49bcc35d553e64a15dfc5e to your computer and use it in GitHub Desktop.
Manage screenshots made using GNOME 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 | |
for sc in Screenshot*; do | |
echo Opening $sc with Eye of GNOME | |
eog "$sc" | |
echo -n "Enter a new filename for $sc, or type 'q' to quit or 'd' to delete: " | |
read dest | |
if [[ "$dest" == "q" ]]; then | |
exit 0 | |
elif [[ "$dest" == "d" ]]; then | |
rm -v "$sc" | |
else | |
mv -v "$sc" ./screenshots/$dest.png | |
fi | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment