You are not logged in.
As the title suggest, I would like to find a way to change my desktop manager on the fly, without having to reenter a password every time. I would like to switch between gnome and openbox for instance.
Ideally that would be from a command line.
Currently, I do it this way:
> sudo systemctl restart lightdmBut that requires me to select the other desktop manager (with the mouse, heaven forbid !), and reenter my user password.
(I use lightdm as my display manager, and would like to keep it that way if possible)
Last edited by Spok (2019-06-13 18:31:45)
Offline
I think you have your nomenclature confused...
Gnome is a DE (desktop environment) whereas Openbox is a WM (window manager). Neither of them are DM's (desktop managers).
Please rephrase your question to something understandable.
Offline
When start lightdm I get a drop down containing the list of "environments" I can open after login:
Gnome
KDE
Openbox
I3
etc…
It seems like lightdm sees gnome and openbox as the same "thing". I installed both as standard Arch packages "gnome" and "openbox".
Let's say Desktop Environment
Last edited by Spok (2019-06-13 19:06:50)
Offline
You'd have to start some sort of "master session" (eg. an xterm) and run and stop the sessions found in /usr/share/xsessions/ from there.
However there'll likely be artifacts ie. processes from one desktop environment keep running with another.
Depending on the actual usecase, pam_timestamp might be of use (allows you to login w/o psasing creds if your last login is less than <time™> ago)
Online
Thanks for the help.
Actually, now that I have done more testing, I guess I meant window manager ![]()
I was able to achieve my goal with this kind of command :
killall gnome-shell && openbox
Which replaces the gnome wm with openbox.
Offline