I have an issue with KDE's SDDM and i3lock-fancy's xidlehook

The ghost problem of session restoration and logoff has been solved with:

  • I had to purge totally SDDM;
  • I had to type my username, my password from tty and to run startx
  • I found the ghost and dead NVIDIA services, and removed them;
  • I copied the services from @dbrgn’s his dotfiles to /etc/systemd/system/ and modified the xidlehook.service , and enabled and started the services;
  • I created the ssh-agent in the user systemd, enabled and started it.

It worked only on i3, but it does not work on Sway.