lys-wm settings
lys-wm's settings appear when lys-wm is on PATH, on their own pages or beside lys-shell's where both set the same thing. They write runtime overrides to $XDG_CONFIG_HOME/lys-wm/runtime.yaml (~/.config/lys-wm/runtime.yaml when unset). lys-wm merges them over config.yaml, which this app only reads. See lys-wm's config reference for what each key does.
| Page | ID | Keys |
|---|---|---|
| Windows | wm-windows | gaps, borders, corner radius, opacity and dimming under decoration, focus, fullscreen, floating, titlebars, swallow |
| Shadow & Blur | wm-effects | decoration.shadow, decoration.blur |
| Motion | motion | animations.enabled and animations.reduced_motion (one switch each with lys-shell's), overview, switcher, showdesktop, drag_preview, hot_corners |
| Tiling & Tabs | wm-tiling | autotile, tabs |
| Keyboard | wm-keyboard | input.keyboard, cursor, each keyboard's input.devices layout |
| Mouse & Touchpad | wm-pointer | input.pointer, input.touchpad, gestures, input.trackpoint, each pointing device's input.devices settings |
| Keyboard Shortcuts | wm-binds | binds and submaps in one table, app shortcuts |
| Displays | wm-outputs | Output layout, primary_output, color_management, tearing, gpu |
| Rules & Session | wm-session | rules, env, xwayland, palette |
lid_action sits on the Idle page, beside the idle times it shares its sleeps with, while lys-wm is installed.
What a change does
- The override file is read fresh, so hand edits made while the window is open are kept.
- Only the bytes of the key's value change. Comments, blank lines and key order stay.
- The result is written to a temporary file beside it and checked with
lys-wm --check-config --runtime <file>, over the realconfig.yaml. - If the file changed during the check, the change starts over, up to three tries.
- The override file is replaced atomically, keeping its mode.
lys-wmctl reloadmakes a running lys-wm read it. With no lys-wm running, the page says the change is saved for the next one.
Changes made in quick succession to the same key are written once.
A change lys-wm refuses leaves the file and the session unchanged. The row goes back to the last accepted value and shows lys-wm's message, with the file and line. A new or edited card (a bind, rule, output or gesture) is checked before it is written; while lys-wm refuses it, it stays on the page as an unsaved draft with the reason. The row's reset button discards a draft.
Displayed values
A key without an override shows the value lys-wm uses: its built-in config, else its schema's default. The acceleration profile is one such key per device class: Mouse shows flat and Touchpad adaptive until either is changed. Keys lys-wm leaves to the system, such as the keyboard layout or a touchpad setting libinput decides, show Inherited. The focus border defaults to accent, which follows the desktop accent set on the Theme page.
Without a config.yaml, lys-wm's built-in config applies under the overrides, so its default binds keep working.
A key that config.yaml sets and a control takes away, such as the profile a drawn acceleration curve replaces, is overridden with null, which lys-wm reads as unset; a key only the override file sets is removed from it.
Acceleration curves
Each pointer class on Mouse & Touchpad can replace its acceleration profile with a drawn accel_points curve: the pointer's speed at each multiple of the step, beside the line of a pointer that moves as far as the device. Draw a custom curve starts from that line; each point is dragged up or down, and points are added or removed within the 2 to 64 lys-wm takes. While a curve is in use the profile row is hidden, and Use the acceleration profile clears the curve. A curve the editor cannot read is kept and marked.
Individual devices
Mouse & Touchpad and Keyboard end with the devices lys-wm reports as connected, each a card that opens to the rows of its class: a touchpad's card holds the Touchpad rows, a keyboard's the layout and xkb rows. A value set in a card is written to input.devices under the device's name and wins over its class for that device alone; a row left unset follows the class, and its reset button clears the device's own value. A device that is not connected but keeps settings of its own is listed after the connected ones, marked Not connected, and can be forgotten, which clears only the keys of that page. Look for devices again asks lys-wm anew after a device is plugged in.
Terminal swallowing
The terminals whose windows a window they start replaces are picked from the installed terminals on Windows, and written as swallow.terminals matching exactly their app ids: ^(foot|org\.wezfurlong\.wezterm)$. A pattern written by hand that no list of apps expresses is shown as written and kept until Replace with a list clears it. The titles that never swallow are a pattern on the new window's title, editable while some terminal swallows.
Displays
The Displays page arranges outputs by dragging them on a canvas, and turns each on or off and sets its resolution, refresh rate and scale, over wlr-output-management. Identify shows each output's name on it. Apply tests the layout, applies it, and asks on every output whether to keep it; without an answer it reverts after 15 seconds. Keep writes the layout to outputs, matching each monitor by its description when known, else by connector. Primary display makes the selected display the one primary_output names, matched the same way, and the canvas marks it Primary; lys-shell shows its OSD and notifications there. Only a display that is on can be made primary, and as the key names one display, making another primary moves the mark.
Keyboard Shortcuts
Each bind reads as what it does, with its chord as keycaps beside it: the action lys-wm names with its arguments filled in, such as Switch to workspace 3 or Move window left, Launch Firefox for a command an installed app is started with, or the bind's own description when it has one. An action lys-wm does not know reads as written and is marked Unknown action.
Binds are grouped by what they are for: Windows, Workspaces, Layout, Apps, Screenshots, Media, System, and Custom for an action lys-wm does not know. An app's bind counts as a screenshot or media one by its key (Print, the volume, media and brightness keys) or by the program it runs (such as grim, wpctl or playerctl). The search field above finds a bind by what it does, its group, its action as written or its keys.
Each mode (submaps) follows the groups as one of its own, headed by its name and the chord that enters it, a recorder writing the bind submap <name>; a mode no bind enters says so. Its binds are listed under it and edited like any other. Add mode asks for a name and the chord that enters it, and writes the mode with Escape leading back out (submap reset) beside the bind entering it, in one change lys-wm checks first. A name already taken, or reset (which leaves every mode), is refused, as is a chord another bind holds. Renaming a mode renames every bind entering it, in the binds and in other modes, keeping the rest of each bind. Deleting one asks first, then drops it and every bind entering it. A mode config.yaml or the built-in config defines cannot be removed by an override, so a deleted one is written as name: null, which lys-wm reads as a mode with no binds and the table leaves out.
A bind's action is picked from lys-wm's actions, grouped the same way, and its arguments are set by the form lys-wm describes for that action: a direction or other fixed choice is a row of segments or a dropdown, a workspace a number or a name, a word such as follow a switch, and the command of exec the command picker with its app picker. Arguments outside the action's form stay editable as text and are marked Not a form of this action; an action whose form the editor does not build (debug) takes its arguments as text.
A chord bound twice is marked on every row that holds it, naming the other: two binds in one list (with Replace to keep this one), a bind and a submap's bind (Close window in mode resize; while that mode is on, its bind wins), or an app shortcut and a bind or submap.
A bind that differs from lys-wm's built-in ones (lys-wm --default-config) has a reset button that puts it back: to the built-in bind it repeats with other flags or description, else to the built-in bind doing its action on a chord no bind holds, else to the built-in bind on its chord. A bind of your own, with no built-in one to go back to, has none.
Home Manager and Nix
A config.yaml linked into the Nix store is never written, so every setting stays editable. To make changes permanent, copy each key of runtime.yaml into the attribute set Home Manager writes config.yaml from, then delete runtime.yaml. lys-wm --effective-config lists the keys still coming from it.
Limits
- A read-only override file is not written. The page names it, and the link's target when it is a link.
- A writable link is written through and stays a link.
- A dangling link is an error.
- YAML anchors and aliases: an edit through one is refused, naming the line. Change it by hand.
- A file that does not parse is not written; the page shows the error.
- Lists and multi-form keys (
binds,rules,outputs, a gradient border) are written whole: changing one item overrides the whole value.