#!/bin/bash if [ -z "$DISPLAY" ]; then DISPLAY=:0 fi scrot '%Y-%m-%d-%H:%M:%S.png' -e "mv \$f ~http/screenshots/. && echo https://www.smirky.net/screenshots/\$f | xclip -selection clip-board"