summary refs log tree commit diff
path: root/bin/grimshot
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-02-23 13:34:02 +0100
committerRobert Günzler <r@gnzler.io>2021-04-26 02:09:45 +0200
commit881daf6c567da2fe91f6b4a3f74e2fce662d806a (patch)
treedc154c97f28920279e68a95d12094d0ba8085516 /bin/grimshot
parent44bc3e2e0690ec0091a24c32662cd2088fae5187 (diff)
lots of small things
Diffstat (limited to 'bin/grimshot')
-rwxr-xr-xbin/grimshot6
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