#!/usr/bin/env bash scr_path=~/pics/scrots n=6; output=$(tr -cd '[:alnum:]' < /dev/urandom | head -c$n) import -window root "$scr_path/$output.png" notify-send 'screenshot taken!' xclip -selection clipboard -t image/png -i "$scr_path/$output.png"