#!/bin/sh # takes a screenshot of the selected region # and saves it to the clipboard # requires: scrot xclip set -e output="${HOME}/ss.png" rm -f "${output}" scrot -s -p -F "${output}" xclip "${output}" -t image/png -selection clipboard