Closed Jappie3 closed 3 months ago
TODO update readme maybe some extra comments/logs
@MRSS02 would appreciate a test :)
tried it myself running Sway nested in Hyprland with the following arguments: --before-freeze-cmd 'grim -g "$(slurp)" -' --before-freeze-timeout 10
It worked, but i had to add "; killall wayfreeze" before the evoked "before freeze" command so i don't have to click a second time to exit wayfreeze. But thanks!
thanks, made sure to include killall wayfreeze
in the readme
Big refactor to avoid problems with layer surface ordering (which is up to the compositor, according to the Wayland specification). Also adds 4 new arguments:
before-freeze
allows you to run commands before Wayfreeze creates a layer surface (but after it has already copied the screen), whileafter-freeze
is for running things after the screen has been frozen, but before Wayfreeze has exited.