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 thexidlehook.service, and enabled and started the services; - I created the
ssh-agentin the user systemd, enabled and started it.
It worked only on i3, but it does not work on Sway.