#!/usr/bin/env sh p="~/pictures/scrot" cmd="mv \$f ${p} && notify-send \"Screenshot\" \"Saved to ${p}/\$f\"" eval "$(get-focussed-monitor --coords)" scrot -a $X,$Y,$W,$H screen-%Y%m%d%H%M%S.png -e "${cmd}"