I am trying to configure a window manager (swaywm) which doesn't support display managers, to work with GDM. I want to use the command gdmflexiserver
in conjunction with swaylock
(like slock/i3lock, but for sway) to lock my session.
GDM is running in TTY1 and after logging in for the first time, swaywm starts in TTY2. If I run gdmflexiserver
I basically go to TTY1, but ctrl+alt+F2 can take me back to my unlocked sway session. Thus I must use swaylock
, to lock my session before gdmflexiserver
takes me to GDM. (Swaylock is the only thing I know that can lock my session, but if there is something built in to GDM, I can't find it)
Now, if I enter my password in GDM, it takes me to TTY2, which is locked by swaylock
.
What I want is a way to kill swaylock after authentication, or a pam.d rule to unlock swaylock and not have to enter my password again. What is better and/or possible and how could I implement it?