emersion / slurp

Select a region in a Wayland compositor
https://wayland.emersion.fr/slurp
MIT License
956 stars 57 forks source link

allow single instance of slurp to run #152

Closed kojq closed 7 months ago

kojq commented 7 months ago

Allowing a single instance of slurp would be helpful.

Currently using a key bind to do the following for a screenshot as a workaround:

grim -g "$(flock -n /tmp/slurp slurp)"
emersion commented 7 months ago

Sorry, I don't think it's slurp's responsibility to do this. Another way to implement in a simple way would be pgrep slurp || slurp for instance.