Ly – A TUI Display Manager
github.com
github.com
2- Isn't it better to use a login manager that is 1- graphical and 2- uses the same GUI tech as your DE (for example gtk for xfce/gnome and qt for KDE) so the actual GUI apps could be hot-loaded in memory and the initial cold-runs of programs could be faster?
Thanks for the project. Seems clean.
If yes to both, you could have your bashrc (or you shell's equivalent) start X and i3 on a TTY login?
regardless if textmode or framebuffer,
and simply do upward arrow & enter,
since whatever starts your session is the last entry in shell history anyways :-)
This way there is less surprise/annoyance with flickering/crashing X,
like you could have when starting X unconditionally after login,
which could happen after you modified something to test.
On another console, to not spoil the history for that upward arrow & enter thing ;-)
Which works regardless of shell/WM/DE/OS/whatever, at least it does so for me.
You're assuming everyone using Linux uses a DE.
2: The display manager starts up a window manager, which figures out where to draw your apps. X11 or Wayland is the underlying tech that KDE, Gnome, etc, uses to manage displays/windows.
Ly draws straight to the terminal, which I'm pretty sure is faster. And it allows some flexibility when running multiple window managers. I've found having multiple window managers installed can be a little unstable. SDDM didn't like it, but it works pretty good with Ly.
A text only login manager could spare some more resources on small systems, since once the desktop environment has been loaded it keeps running anyway. I use LightDM and XFCE for example, and if I look at LightDM memory consumption, the amount although not huge is neither trivial; I guess small embedded devices would benefit from this.
$ sudo pmap `pidof lightdm`
2021: lightdm --session-child 14 23
000055728c276000 28K r---- lightdm
000055728c27d000 168K r-x-- lightdm
000055728c2a7000 76K r---- lightdm
....
....
total 163696K
1795: /usr/sbin/lightdm
0000555cca10b000 28K r---- lightdm
0000555cca112000 168K r-x-- lightdm
0000555cca13c000 76K r---- lightdm
....
....
total 236188KI'm not using one for a long time, thanks to disk encryption and auto-login.
How does this work? I'd think that auto-login is a convenience that reduces security, and disk encryption would only be meaningful with some factor of authentication?
The thing display/login managers have going for them is they allow certain configuration before logging in, or they show certain information before logging in. Whatever you want to configure or display depends (mostly on preference). Thinking about it, I am not sure I need anything. I mean, all I do is type sway.