scap: Don't run if scap is already running
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user