Files
scripts/screenshot_to_url_local.sh
2018-08-28 13:50:46 +03:00

8 lines
195 B
Bash
Executable File

#!/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"