scap: Don't run if scap is already running

This commit is contained in:
hulthe committed 2023-05-15 10:10:21 +02:00
1 parent 6296c29f5d
commit ecce69cad2
1 file changed
+5
+5
View File
@@ -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