Skip to content

Getting started ​

Install lys-wm first. The built-in config binds SUPER + Return to foot; install it or change the bind.

Start it ​

FromRun
A display managerPick the lys-wm session (runs lys-wm --systemd --holder)
A text consolelys-wm --systemd
Another Wayland sessionlys-wm (opens a nested window)

Nested, it prints the display it listens on:

lys-wm: listening on wayland-2 and X display :1 with the nested backend
sh
WAYLAND_DISPLAY=wayland-2 foot

Command line ​

FlagEffect
--config <file>Config file; must exist. Default $XDG_CONFIG_HOME/lys-wm/config.yaml, else the built-in config
--runtime <file>Runtime overrides merged over the config; must exist. Default runtime.yaml beside the config, if present
--systemdExport the session environment to D-Bus activation and the systemd user manager, and run lys-wm-session.target; see Session. Not for nested use
--backend <name>drm, nested or headless. Default nested when WAYLAND_DISPLAY is set, else drm
--renderer <name>vulkan, lavapipe or soft. Default $LYS_WM_RENDERER, else vulkan on drm and nested, soft on headless. drm takes vulkan or lavapipe; nested and headless take vulkan or soft, and refuse any other name with the list they take. Pass lavapipe (or set LYS_WM_RENDERER=lavapipe) on drm where the GPU has no Vulkan driver, as in VMs on virtio-gpu without venus: Vulkan then renders on the CPU into buffers the card allocates, which needs read and write access to /dev/udmabuf
--holderRun under a holder process so the session can be upgraded in place
--check-configLoad the config and runtime overrides as a reload would and exit; status 0 and no output when accepted
--effective-configPrint every key set, with the layer, file and line it comes from, as JSON, and exit
--default-configPrint the built-in config and exit
--config-schemaPrint the config's JSON schema and exit
--frame-trace <file>Record every frame's timing as JSON lines; see Frame pacing
--cpu-profile <file>Write a Go CPU profile while running

lys-wm logs to stderr. LYS_WM_DEBUG=wire adds a Wayland message trace.

Default binds ​

From the built-in config (lys-wm --default-config prints it in full):

ChordAction
SUPER + ReturnRun foot
SUPER + Spacelys-shell's launcher (global shortcut)
SUPER + Alys-shell's dashboard (global shortcut)
SUPER + QClose the focused window
SUPER + H J K L or arrowsMove focus
SUPER + SHIFT + H J K L or arrowsMove the focused window
SUPER + 1 … 0Show workspace 1–10
SUPER + SHIFT + 1 … 0Move the window to workspace 1–10
SUPER + D, S, TWrap the window in a horizontal, vertical or tab group
SUPER + FFullscreen
SUPER + VToggle floating
SUPER + TabToggle the overview
ALT + Tab, ALT + SHIFT + TabSwitch windows in most-recently-used order
ALT + ` Switch between the focused app's windows
SUPER + RResize submap: arrows resize, Return or Escape leaves
SUPER + =, SUPER + -, SUPER + BackspaceZoom in, out, reset
SUPER + CTRL + scroll, SUPER + two-finger pinchZoom smoothly
SUPER + left / right dragMove / resize the window under the pointer
SUPER + scrollStep through open workspaces
Three-finger horizontal / vertical swipeSwitch workspaces / open the overview
SUPER + SHIFT + RReload the config
SUPER + SHIFT + EExit the session, without confirmation

The keymap's XF86Switch_VT_* keys (usually CTRL + ALT + F1…) switch virtual terminals.

Configure ​

The config is ~/.config/lys-wm/config.yaml. A file replaces the built-in config entirely, binds included, so start from a copy:

sh
mkdir -p ~/.config/lys-wm
lys-wm --default-config > ~/.config/lys-wm/config.yaml

Edit it, then press SUPER + SHIFT + R or run lys-wmctl reload. Nothing reloads automatically. For example, a keyboard layout:

yaml
input:
  keyboard:
    layout: dk

A file with an error is rejected whole and the running config stays; unknown keys are skipped and the rest applies. Either way an on-screen notice names the file, line and key until a reload fixes it. Config lists every key, Actions every action.

Script it ​

sh
lys-wmctl windows
lys-wmctl dispatch workspace 3
lys-wmctl watch

See IPC.

A desktop around it ​

lys-wm draws windows only. Bars, launchers, wallpapers and portals are separate programs, started from autostart or as user services wanted by graphical-session.target. lys-shell is the lys shell and lys-login its display manager and lock screen; any layer-shell bar and ext-session-lock-v1 locker also works.

Released under the MIT License.