Install
Install sets up the whole desktop. This page is what lys-wm's packages, tarball and Nix modules hold and need.
Every install provides:
lys-wmandlys-wmctl- the
lys-wmdisplay manager session (lys-wm --systemd --holder; the Debian and Fedora packages start it throughlys-session, see xdg-open) - the
lys-wm-session.targetsystemd user unit lys-wm-portals.conf, the portal routing- login limits (
rtprio 1,nice -10) so the compositor thread can run with real-time priority
NixOS
Import lys.nixosModules.lys-wm (NixOS adds the flake) and set programs.lys-wm.enable = true.
| Option | Default | Effect |
|---|---|---|
programs.lys-wm.enable | false | Install lys-wm, register the session, the user unit and portal config, set the login limits, enable foot and the NixOS Wayland session defaults (polkit, portals) |
programs.lys-wm.package | the flake's build | The lys-wm package |
programs.lys-wm.clients | {} | User units of the session's clients and the packages they run, restarted onto a new build only once the session runs the new lys-wm; lys-shell's modules fill it in |
The user unit lys-wm-upgrade.service runs with the session. A switch to a generation with another lys-wm restarts it, and it upgrades the session in place to that lys-wm. Your windows and clients stay. lys-shell, through programs.lys-wm.clients, restarts on its new build only after that. If the upgrade is refused, a red notice on every output says why, and the shell stays on the build that matches the running compositor.
Set programs.foot.enable = false to leave out foot. lys-shell, which the portal config prefers, is not included. GPU drivers come from /run/opengl-driver.
home-manager on another distribution
Import lys.homeModules.lys-wm and set programs.lys-wm.enable = true (same package option). It installs lys-wm and foot, links lys-wm-session.target into ~/.config/systemd/user, and adds lys-wm-upgrade.service, which moves a running session to the lys-wm of each new generation as on NixOS. The display manager, portals, login limits and GPU drivers stay the host's: point the display manager at lys-wm --systemd --holder yourself. NixOS shows how to try lys-wm nested with nix run, without installing it.
Debian and Ubuntu
sudo apt install ./lys-wm_<version>_amd64.deb # _arm64.deb on aarch64- Depends:
libgbm1,libinput10,libvulkan1,shared-mime-info,xkb-data. - Recommends:
xwayland,xdg-desktop-portal,lys-shell,foot,mesa-vulkan-drivers.
lys-shell is not in the distribution archive; it is in the same release. It is the session's only portal backend: without it, no portal answers.
Fedora
sudo dnf install ./lys-wm-<version>-1.fc<release>.x86_64.rpm # .aarch64.rpm on aarch64- Requires:
mesa-libgbm,libinput,vulkan-loader,shared-mime-info,xkeyboard-config. - Recommends:
xorg-x11-server-Xwayland,xdg-desktop-portal,lys-shell,foot,mesa-vulkan-drivers.
The lys-shell and portal notes above apply.
xdg-open
xdg-utils' xdg-open knows no lys desktop, so it opens with its own generic rules: a Markdown file typed by libmagic as plain text, only the first [Default Applications] entry, never lys-shell's app chooser. The Debian and Fedora packages ship lys's own xdg-open at /usr/libexec/lys/bin/xdg-open and leave the distribution's in place: the session file starts the compositor as /usr/libexec/lys/lys-session lys-wm --systemd --holder, and lys-session puts /usr/libexec/lys/bin first on PATH. lys-wm hands that PATH to the systemd user manager and D-Bus activation, so every app the session starts finds lys's xdg-open first. A login shell whose profile sets PATH anew, as Debian's /etc/profile does, drops it.
It takes xdg-utils' command line (one file or URL; --help, --manual, --version) and exit statuses (0 success, 1 syntax, 2 a missing file, 3 no OpenURI portal, 4 the action failed). It opens with the app the mime-apps lists name the default, as every lys app does, and asks the OpenURI portal, whose lys-shell backend shows the app chooser, for a type no app is the default for.
On NixOS the lys-shell module sets xdg.portal.xdgOpenUsePortal, so nixpkgs' xdg-open asks the portal for everything; the tarball and home-manager installs keep the distribution's xdg-open.
Tarball
The tarball holds the binaries, session file, user unit, portal config, limits file and licences, and the xdg-open helper and lys-session, which this install leaves out. <arch> is x86_64 or aarch64:
tar xzf lys-wm-<version>-<arch>-linux.tar.gz
cd lys-wm-<version>-<arch>-linux
sudo install -m 0755 lys-wm lys-wmctl /usr/bin/
sudo install -Dm 0644 lys-wm-session.target /usr/lib/systemd/user/lys-wm-session.target
sudo install -Dm 0644 lys-wm-portals.conf /usr/share/xdg-desktop-portal/lys-wm-portals.conf
sudo install -Dm 0644 lys-wm.desktop /usr/share/wayland-sessions/lys-wm.desktop
sudo install -Dm 0644 90-lys-wm.conf /etc/security/limits.d/90-lys-wm.confThe binaries need the glibc loader (/lib64/ld-linux-x86-64.so.2 or /lib/ld-linux-aarch64.so.1) and these runtime dependencies. The overrides work on every install.
| Dependency | Default | Override |
|---|---|---|
| Vulkan | libvulkan.so.1 | LYS_LIBVULKAN |
| GBM (scanout buffers) | libgbm.so.1 | LYS_WM_LIBGBM |
| libinput | libinput.so.10 | LYS_WM_LIBINPUT |
| xkeyboard-config | /usr/share/X11/xkb | XKB_CONFIG_ROOT |
| Tab font | Inter Regular, built in | tabs.font in the config |
| Xwayland | Xwayland on PATH | LYS_WM_XWAYLAND |
Check it
lys-wm -backend none # unknown backend "none" (available: drm, nested, headless)
lys-wmctl # no commandBoth exit 1, which shows the binaries load. Then start a session.