From 856f997fd4b02633fff6b1ae66736c3677bd750c Mon Sep 17 00:00:00 2001 From: ThorGameDev Date: Mon, 18 Nov 2024 20:55:00 -0700 Subject: [PATCH] Only kill hyprpicker if running --- hyprshot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hyprshot b/hyprshot index 0fb976f..a98f1c3 100755 --- a/hyprshot +++ b/hyprshot @@ -134,7 +134,9 @@ function checkRunning() { sleep 1 while [[ 1 == 1 ]]; do if [[ $(pgrep slurp | wc -m) == 0 ]]; then - pkill hyprpicker + if [ $FREEZE -eq 1 ]; then + pkill hyprpicker + fi exit fi done