diff options
| author | Robert Günzler <r@gnzler.io> | 2021-02-23 13:34:02 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-04-26 02:09:45 +0200 |
| commit | 881daf6c567da2fe91f6b4a3f74e2fce662d806a (patch) | |
| tree | dc154c97f28920279e68a95d12094d0ba8085516 /bin/grimshot | |
| parent | 44bc3e2e0690ec0091a24c32662cd2088fae5187 (diff) | |
lots of small things
Diffstat (limited to 'bin/grimshot')
| -rwxr-xr-x | bin/grimshot | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/grimshot b/bin/grimshot index f661dad..4d4dd81 100755 --- a/bin/grimshot +++ b/bin/grimshot @@ -19,6 +19,10 @@ ## `grimshot | grimshot -h` - usage ## `grimshot check` - verify if tools are installed +_slurp() { + slurp -d -c '#4E437188' -w 3 +} + ACTION=${1:-usage} SUBJECT=${2:-screen} FILE=${3:-$(xdg-user-dir PICTURES)/screenshots/$(now).png} @@ -104,7 +108,7 @@ if [ "$ACTION" = "check" ] ; then check mktemp exit elif [ "$SUBJECT" = "area" ] ; then - GEOM=$(slurp -d) + GEOM=$(_slurp) [ -z "$GEOM" ] && die "Selection cancelled" WHAT="Area" elif [ "$SUBJECT" = "win" ] ; then |