Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
Created September 23, 2018 04:19
Show Gist options
  • Save steelcowboy/f63b1158ef49bcc35d553e64a15dfc5e to your computer and use it in GitHub Desktop.
Save steelcowboy/f63b1158ef49bcc35d553e64a15dfc5e to your computer and use it in GitHub Desktop.
Manage screenshots made using GNOME Screenshot
#!/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