summary refs log tree commit diff
path: root/bin/grimshot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/grimshot')
-rwxr-xr-xbin/grimshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/grimshot b/bin/grimshot
index 434c97f..f661dad 100755
--- a/bin/grimshot
+++ b/bin/grimshot
@@ -134,11 +134,11 @@ elif [ "$ACTION" = "save" ] ; then
   if [ $? ]; then
     TITLE="Screenshot of $SUBJECT"
     MESSAGE=$(basename "$FILE")
+    wl-copy --type image/png < "$FILE"  || die "Clipboard error"
     notifyOk "$MESSAGE" "$TITLE"
   else
     notifyError "Error taking screenshot with grim"
   fi
-  wl-copy --type image/png < "$FILE"  || die "Clipboard error"
 elif [ "$ACTION" = "rec" ] ; then
   echo "$FILE" | awk '/png$/{exit 0}' && \
     FILE=$(xdg-user-dir VIDEOS)/grimshot/$(now).mp4