screenshot.sh

#!/bin/bash bkdest=$HOME/Desktop/Screenshots/ target=${bkdest}/$(date +%Y_%m_%d_%H_%M_%S).png mkdir -p $bkdest /usr/bin/gnome-screenshot -f $target -a /usr/bin/pinta "$target" MEDIA=`shpub -d -s $SHPUB_SERVER upload $target | tail -n 1` shpub -d -s $SHPUB_SERVER note -c screenshots -f $MEDIA --json Screenshot