Skip to content

Commit

Permalink
Fix wait check
Browse files Browse the repository at this point in the history
  • Loading branch information
graves501 authored Jan 24, 2024
1 parent b7825b2 commit 24117cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grimshot
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ takeScreenshot() {
fi
}

if [ "$WAIT" != "no" ]; then
sleep "$WAIT"
fi

if [ "$ACTION" = "check" ] ; then
echo "Checking if required tools are installed. If something is missing, install it to your system and make it available in PATH..."
check grim
Expand Down Expand Up @@ -172,10 +176,6 @@ else
die "Unknown subject to take a screen shot from" "$SUBJECT"
fi

if [ "$WAIT" != "no" ]; then
sleep "$WAIT"
fi

if [ "$ACTION" = "copy" ] ; then
takeScreenshot - "$GEOM" "$OUTPUT" | wl-copy --type image/png || die "Clipboard error"
notifyOk "$WHAT copied to buffer"
Expand Down

0 comments on commit 24117cc

Please sign in to comment.