Command line
lys-login greet
lys-login greet [--config PATH] [--sessions DIR]... [--no-sessions] [--xsessions DIR]... [--no-xsessions] [--state PATH] [--env KEY=VAL]... [--system-account NAME]... [--hand-over] [-- <session argv...>]| Flag | Default | Effect |
|---|---|---|
--config PATH | /etc/lys-shell/config.yaml | lys-shell config to theme from. |
--sessions DIR | wayland-sessions in each $XDG_DATA_DIRS directory: /usr/local/share/wayland-sessions, /usr/share/wayland-sessions when it names none | Wayland session directory. Repeatable; replaces the defaults. |
--xsessions DIR | xsessions in each $XDG_DATA_DIRS directory: /usr/local/share/xsessions, /usr/share/xsessions when it names none | X11 session directory, started through startx. Repeatable; replaces the defaults. |
--no-sessions | Offer no Wayland session from a directory. Contradicts --sessions. | |
--no-xsessions | Offer no X11 session. Contradicts --xsessions. | |
--state PATH | $XDG_STATE_HOME/lys-greeter/last-session, else $HOME/.local/state/lys-greeter/last-session; a variable that holds no absolute path counts as unset, and with neither the flag is required | Last-session file; other state goes beside it. |
--env KEY=VAL | Extra session environment, applied after the XDG_SESSION_TYPE derived from the session kind. Repeatable. | |
--system-account NAME | Leave NAME out of the user list; it still logs in by typing its name. Repeatable. The daemon passes one for each account /var/lib/AccountsService/users/NAME marks SystemAccount=true. | |
--hand-over | off | Set by the daemon: after a login, keep showing the background until the daemon stops the compositor. Without it the greeter exits so greetd can start the session. |
-- <argv...> | Fallback session offered as "Custom" (type wayland). |
Every PATH and DIR is absolute. Exits 2 on a malformed command line or when there is no session to offer.
lys-login daemon
lys-login daemon [--vt N] [--service NAME] [--greeter-user NAME] [--compositor PATH] [--runtime-dir DIR] [--splash PATH] [--autologin USER [--autologin-session ID]] [-- <greet args...>]Runs as root. Arguments after -- are lys-login greet's; an empty session list stops it at startup. The daemon resolves what they leave unsaid once, in its own environment, and starts the greeter with every flag given: the session directories default to those of the daemon's $XDG_DATA_DIRS, and --state to /var/lib/lys-greeter/last-session, whatever the daemon's own home is.
| Flag | Default | Effect |
|---|---|---|
--vt N | 1 | Virtual terminal. |
--service NAME | lys-login | PAM service of a password login; a fingerprint login goes through lys-login-fingerprint. |
--greeter-user NAME | lys-greeter | Account the greeter runs as. |
--compositor PATH | lys-wm | The greeter's compositor. |
--runtime-dir DIR | /run/lys-login | Sockets and kiosk config. |
--splash PATH | lys-splash, quit with --retain-splash once the greeter's first frame is presented. | |
--autologin USER | Log USER in once per boot via lys-login-autologin (Autologin). | |
--autologin-session ID | last session, else first | Session to autologin into (a session file's name, -x11 suffix for X11). An unknown ID, or this flag without --autologin, stops the daemon at startup. |
The packaged unit's ExecStart and ExecReload both use LYS_LOGIN_DAEMON_ARGS:
--vt 1 --service lys-login --greeter-user lys-greeter --compositor /usr/bin/lys-wm --splash /usr/bin/lys-splash -- --config /etc/lys-shell/config.yaml --state /var/lib/lys-greeter/last-sessionlys-login upgrade
lys-login upgrade [-- <daemon args...>]Run as root from the new build, normally by systemctl reload lys-login. Moves the running daemon to this build and these arguments (Upgrading in place) and prints the program it now runs.
| Exit | Meaning |
|---|---|
| 0 | The new daemon took over. |
| 1 | The upgrade failed; the reason is printed and the old daemon keeps running. |
| 2 | Arguments the daemon would refuse. |
lys-login lock
lys-login lockNo arguments. Output and exit codes: The lock screen.
lys-login apply-config
lys-login apply-config [--config PATH] <STAGED.yaml>Changes the login screen and prints the file written. --config is root-only. See Configuration.
lys-login record-cursor
lys-login record-cursorSends the session's cursor to the daemon and prints the file written. Exits 0 without recording when the session names no cursor. See Configuration.
lys-login check-pam
lys-login check-pam SERVICETells whether the lock can unlock you through the PAM service SERVICE, without asking for a password: the service is a file in /etc/pam.d or /usr/lib/pam.d, and its account stack accepts you. It authenticates nothing, so no failed attempt is counted. Exits 0 when it can, 1 with the reason when it cannot, and 2 on a usage error. lys-settings runs it before it saves login.lock.pam-service.
lys-login switch-user
lys-login switch-userIn a session started by the daemon: locks the running sessions and shows a greeter on a free VT. See Switching users.
Internal modes
lys-login worker, lys-login daemon-resume and lys-login vault-unlock are started by lys-login itself.
Environment
| Variable | Effect |
|---|---|
LYS_UI_RENDERER | cpu always draws on the CPU; gpu makes an unusable GPU an error; unset or auto picks. |
XCURSOR_THEME, XCURSOR_SIZE | Last step of cursor resolution. |