diff --git a/tree/.local/bin/scap b/tree/.local/bin/scap index 377b369..ab3f8b9 100755 --- a/tree/.local/bin/scap +++ b/tree/.local/bin/scap @@ -5,6 +5,11 @@ if [ "$XDG_SESSION_TYPE" != "wayland" ]; then exit 1 fi +if ps -e | grep "slurp"; then + echo "slurp is already running" + exit 1 +fi + DIMS="$(slurp)" grim -g "$DIMS" - | pbc