Getting started
lys-login is one binary with these modes:
| Command | What it is |
|---|---|
lys-login daemon | The display manager, a root service on a VT. |
lys-login greet | The greeter, under lys-login daemon or under greetd. |
lys-login lock | The session lock, started by lys-shell. |
lys-login upgrade | Moves the running daemon to a new build in place. |
lys-login apply-config | Changes the login screen from your session. |
lys-login record-cursor | Hands your session's cursor to the daemon for the next greeter. |
lys-login check-pam | Tells whether the lock can unlock you through a PAM service. |
lys-login switch-user | Locks the running sessions and shows a greeter for another user. |
Command line lists every flag.
Install
Install sets up the whole desktop. lys-login's own setup is on NixOS, Debian, Ubuntu and Fedora and Other systems, which also covers the greeter under greetd.
Requirements
- libpam, loaded at runtime.
- lys-wm for the display manager.
- A session file: a
*.desktopfile inwayland-sessionsorxsessions. Without one,daemonandgreetrefuse to start and name the directories searched. X11 sessions start throughstartx, which must be on the session's PATH. - A compositor with
ext-session-lock-v1for the lock screen. - Optional: lys-secrets or gnome-keyring to open with the login; libvulkan for GPU drawing (the CPU is used otherwise).
The greeter
- Session picker: Wayland and X11 sessions sorted by name, X11 ones labelled
(X11). The last one used is preselected. Hidden when there is only one. - User list: accounts with a login shell and a UID in
UID_MIN–UID_MAXof/etc/login.defs(1000–60000 where it sets none). Underlys-login daemonit leaves out an account whose/var/lib/AccountsService/users/<user>, left by AccountsService, saysSystemAccount=true; the daemon reads it as root, and AccountsService itself is never asked. Avatars come from/var/lib/lys/avatars/<user>, then/var/lib/AccountsService/icons/<user>, then~/.face. Hidden above 8 users; typing a name always works. - Remembered username, prefilled with focus on the password.
- PAM conversation: extra prompts (one-time codes, expired password changes) and refusal reasons appear on screen. A wrong password keeps the greeter up.
- Caps Lock warning.
- Keyboard layout chip when the system has more than one layout; see Configuration.
- Accessibility menu; see Configuration.
- Power buttons:
systemctl suspend,rebootandpoweroff. - Translations: English (US), German, Spanish, French, Italian, Dutch and European Portuguese, shared with the rest of the desktop.
Troubleshooting
The daemon, its greeters and its workers log to one unit:
journalctl -b -u lys-loginA greeter that fails is started again after 2 seconds. A greeter that fails within 30 seconds of its start waits twice as long each time (2, 4, 8, 16 seconds); after 5 such failures in a row it is started every 5 minutes, and the VT shows why, with the last lines the greeter and its compositor wrote. A greeter that runs cleanly resets the count. The unit restarts if the daemon exits.
When a session ends, the daemon removes the X display locks (/tmp/.X<n>-lock) and sockets (/tmp/.X11-unix/X<n>) it left behind: only those owned by the session's user whose lock names a process that no longer runs, so the next greeter or session can take the display. To test a PAM service without logging out, see PAM services.