I use GNU Screen for terminal multiplexing, and I was wondering if a similar solution existed for desktop environments. This is not the same concept as locking the screen, or logging out of the desktop. But to truly suspend, and then resume the X server at a later time without loss of data.
Also, I am not using Gnome or KDE, neither am I using a login manager.
Desired Behaviour
1) Login via the console.
2) Run startx.
3) Launch Firefox, Terminal, etc.
4) Suspend current X session; user is returned back to the console.
5) Resume previous X session; user is returned back to desktop environment.
Note: all previously running applications should still be present.
Research
Ctrl+Z is used to suspend a job in the terminal. This is used in conjunction with fg to resume the process.
The kill command can also send signals to a running process, e.g. -STOP, -CONT, among others.
killall -TSTP Xor similar, and resume it withkillall -CONT X. Similarly you can just pause your window manager if you prefer.