mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
grimshot: Check if an instance is already running
This commit is contained in:
parent
fc25e4944e
commit
8f7364fb04
1 changed files with 3 additions and 0 deletions
|
|
@ -109,6 +109,9 @@ if [ "$ACTION" = "check" ] ; then
|
||||||
check jq
|
check jq
|
||||||
check notify-send
|
check notify-send
|
||||||
exit
|
exit
|
||||||
|
elif [ "$(pgrep -u $USER grimshot)" != $$ ]; then
|
||||||
|
echo "An instance is already running"
|
||||||
|
exit 1
|
||||||
elif [ "$SUBJECT" = "area" ] ; then
|
elif [ "$SUBJECT" = "area" ] ; then
|
||||||
GEOM=$(slurp -d)
|
GEOM=$(slurp -d)
|
||||||
# Check if user exited slurp without selecting the area
|
# Check if user exited slurp without selecting the area
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue