My first approach was to create a script that would pgrep for an existing instance of the screenlocker and start it only if there isn't one - e.g. gtklock.sh:
#!/bin/bash
if pgrep -x "gtklock" >/dev/null; then
echo "dummy" >/dev/null
else
gtklock -d
fi
I then thought this approach would cause the crash and proceeded to simply launching the daemonized screenlockers:
This occurs with gtklock swaylock swaylock-effects.
this is my swayidle script:
My first approach was to create a script that would pgrep for an existing instance of the screenlocker and start it only if there isn't one - e.g. gtklock.sh:
I then thought this approach would cause the crash and proceeded to simply launching the daemonized screenlockers:
Both approaches result in a crash waking up from suspend.
gtklock -d; systemctl suspend
andswaylock -f; systemctl suspend
do not result in any crash.I'm on Arch Linux and using Hyprland as wm.
Edit: wrongfully pasted two lines in the scripts