diff options
Diffstat (limited to '.local/bin/sscrot')
-rwxr-xr-x | .local/bin/sscrot | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/sscrot b/.local/bin/sscrot new file mode 100755 index 0000000..2d4c049 --- /dev/null +++ b/.local/bin/sscrot @@ -0,0 +1,8 @@ +#!/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 -z screen-%Y%m%d%H%M%S.png -e "${cmd}" |