hyprwm / contrib

Community scripts and utilities for Hypr projects
MIT License
295 stars 40 forks source link

grimblast: add --freeze argument #39

Closed fufexan closed 1 year ago

fufexan commented 1 year ago

Fixes #37

Adds -f | --freeze flag (only works in area mode). This freezes the screen using hyprpicker -r -z so make sure you have that installed. As always, grimblast check tells you whether you're missing anything.

fufexan commented 1 year ago

The double ESC to exit still bothers me, I honestly don't know how to fix it. Maybe there's a way to kill slurp when hyprpicker dies? CGroups? I have no clue.

vaxerski commented 1 year ago

hyprpicker should run behind, and you shouldnt be able to interact with it.

fufexan commented 1 year ago

The problem might be that it somehow takes longer to start than slurp. Maybe adding a sleep 1 should fix it.

fufexan commented 1 year ago

That did the trick. Even 200ms is enough.