You are not logged in.

#1 2022-07-06 07:17:16

manray
Member
Registered: 2022-01-01
Posts: 21

Logout of tty but save session for next login

5.18.9-arch1-1 Dell XPS 15 9510

I am running vanilla with xmonad. I do not have a login manager. On boot, I simply login via the tty and run startx to start my x session. This behavior is exactly what I want.

However, when I sleep or hibernate via systemctl sleep/hibernate, upon waking I am thrown right back into my graphical environment. I find this behavior to be insecure because I do not have to reauthenticate. I would like to be able to sleep/hibernate, relogin to my tty, then be put right back into my graphical environment with the state preserved.

I feel as though this must be something that a lot of people would want to do yet I cannot seem to find any resources on how to do it. I would prefer to continue to not have a login manager and only interface with the tty for authentication.

Offline

#2 2022-07-06 07:52:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: Logout of tty but save session for next login

Use a (minimal) screen locker like slock or i3lock?
Other environments don't save the session and force you to re-login, their screenlocker simply (often) mimics some DM GUI.

Offline

Board footer

Powered by FluxBB