Created
May 13, 2022 13:59
-
-
Save teoulas/a1e0ae3e1a0edba417df2a1bd695fef6 to your computer and use it in GitHub Desktop.
gnome-screenshot2swappy
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
#!/usr/bin/env bash | |
tmpfile=$(mktemp -u --suffix=.png) | |
gnome-screenshot -a -f $tmpfile | |
swappy -f $tmpfile | |
last=$(ls -t ~/Pictures/Swappy_* | head -n1) | |
[[ ! -z "$last" ]] && nautilus -s $last | |
rm $tmpfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment