summaryrefslogtreecommitdiff
path: root/hyprshot
diff options
context:
space:
mode:
Diffstat (limited to 'hyprshot')
-rwxr-xr-xhyprshot5
1 files changed, 4 insertions, 1 deletions
diff --git a/hyprshot b/hyprshot
index fe66073..720d485 100755
--- a/hyprshot
+++ b/hyprshot
@@ -74,7 +74,10 @@ shot10 () {
}
shotarea () {
- g=$(slurp -d) || exit 1
+ g=$(wayfreeze --after-freeze-cmd "slurp -d; killall wayfreeze")
+ if [[ -z "$g" ]]; then
+ exit 0
+ fi
grim -g "$g" - | copy_shot
notify_view
}