diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/grimshot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/grimshot b/contrib/grimshot index 921837f9..4ce31f29 100755 --- a/contrib/grimshot +++ b/contrib/grimshot | |||
@@ -113,7 +113,7 @@ elif [ "$SUBJECT" = "area" ] ; then | |||
113 | GEOM=$(slurp -d) | 113 | GEOM=$(slurp -d) |
114 | # Check if user exited slurp without selecting the area | 114 | # Check if user exited slurp without selecting the area |
115 | if [ -z "$GEOM" ]; then | 115 | if [ -z "$GEOM" ]; then |
116 | exit | 116 | exit 1 |
117 | fi | 117 | fi |
118 | WHAT="Area" | 118 | WHAT="Area" |
119 | elif [ "$SUBJECT" = "active" ] ; then | 119 | elif [ "$SUBJECT" = "active" ] ; then |
@@ -132,7 +132,7 @@ elif [ "$SUBJECT" = "window" ] ; then | |||
132 | GEOM=$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp) | 132 | GEOM=$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp) |
133 | # Check if user exited slurp without selecting the area | 133 | # Check if user exited slurp without selecting the area |
134 | if [ -z "$GEOM" ]; then | 134 | if [ -z "$GEOM" ]; then |
135 | exit | 135 | exit 1 |
136 | fi | 136 | fi |
137 | WHAT="Window" | 137 | WHAT="Window" |
138 | else | 138 | else |