OctopusET / sway-contrib

A collection of user-contributed scripts for sway
MIT License
58 stars 22 forks source link

Fix wait check #26

Open graves501 opened 7 months ago

graves501 commented 7 months ago

When utilizing the --wait flag, the condition gets fulfilled AFTER taking the screenshot. Moving the conditional up fixed this issue.

Tested with this command:

grimshot --notify --wait 3 savecopy anything "$HOME/Pictures/$(date +"%Y-%m-%d_%H-%M-%S").png"
OctopusET commented 7 months ago

IMHO, I don't think it's a bug. wait feature is used for setting the location for screenshot first, and wait, then screenshot.

Can you explain more about your use case for this patch?