aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/sscrot
blob: 3e218d58e5ace0d23168bf7ccd9d934da080eaad (plain)
1
2
3
4
5
6
7
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 screen-%Y%m%d%H%M%S.png -e "${cmd}"