Re: Sway not locked after resume

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Thu, 15 May 2025 16:37:00 UTC
On Thu, May 15, 2025 at 7:04 PM Renato Botelho <garga@freebsd.org> wrote:
>
> before-sleep <command>
>      If built with ConsoleKit2 support, executes command before
>      ConsoleKit2 puts the computer to sleep.

So it seems that ConsoleKit should be used and I don't see any
mentions of it in the relevant Handbook chapter. I think plugging
"ck-launch-session" somewhere into the command line that starts the
graphical session should help.