Created
July 8, 2017 12:50
-
-
Save andreafortuna/d7c2e227d759bf47f3eae8824bc0ff42 to your computer and use it in GitHub Desktop.
Screenshot with Imagemagick
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 | |
TS=`date +%s`.png | |
/usr/bin/import ~/Immagini/$TS > ~/logs/ss.log 2>&1 | |
xclip -selection clipboard -t image/png -i ~/Images/$TS >> ~/logs/ss.log 2>&1 | |
notify-send "Screenshot saved into ~/Immagini/$TS and into clipboard" -t 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment