hyprshot currently returns exit code 1 in both success and failure cases, which breaks Unix conventions and makes it difficult to programmatically detect whether a screenshot was taken successfully.
Expected behavior: Exit code 0 on success, non-zero on failure (standard Unix convention)
Current behavior: Exit code 1 always
Impact: Scripts that want to take action on success/failure need to parse output instead of using standard exit code checking.
Use case: I wanted to add a sound effect on successful screenshots, but had to work around this by checking for empty output instead of exit codes.
I have Provided a image below :
