Skip to content

Config ​

lys-wm reads one YAML file: $XDG_CONFIG_HOME/lys-wm/config.yaml, or ~/.config/lys-wm/config.yaml when XDG_CONFIG_HOME is unset. Without it, lys-wm runs the built-in config, internal/config/default.yaml, a good starting point to copy.

Every section is optional. A file replaces the built-in config rather than adding to it: a key it leaves out takes the default on this page, so a file without binds has no binds and without env none of the built-in variables.

Every error names the file, line and key:

config.yaml:12: binds[3].action: bad action: unknown action "teleport"
FlagEffect
--config <file>Read this file instead; it must exist
--runtime <file>Read this override file instead of runtime.yaml; it must exist
--check-configLoad the config and overrides as a reload would, then exit: status 0 and no output when accepted, the errors and status 1 when not
--default-configPrint the built-in config
--config-schemaPrint the JSON schema, as schema/lys-wm-config.schema.json
--effective-configPrint, as JSON, the layers read and every key they set, with its source layer, file, line and value

SIGHUP, the reload action and lys-wmctl reload read the file again; editing the file does not. A file that does not parse, or whose chords, keymap or font do not load, is rejected whole and the running config stays.

An unknown key is a warning: it is skipped and the rest applies. Errors and warnings show as a red notice on every output until fixed or dismissed (dismissconfignotice). lys-wmctl reload prints warnings and exits 1 on a rejected file; lys-wmctl configproblems lists them.

Schema formats for string keys:

FormatKeysValueEmpty
lys-wm-colorevery colourA palette name or #rrggbb[aa]Refused
lys-wm-font-filetabs.fontA TrueType or OpenType file; relative to lys-wm's working directoryThe built-in Inter Regular
lys-wm-icon-themetabs.icon_themeAn installed freedesktop icon theme's directory name; never a pathAdwaita
lys-wm-xkb-layoutinput.keyboard.layoutLayout names, comma-separated without spaces: us,dkXKB_DEFAULT_*, when every keyboard key is empty
lys-wm-xkb-variantinput.keyboard.variantOne variant per layout, at most as many as layouts; an empty item is that layout's default: ,nodeadkeysEach layout's default
lys-wm-xkb-optionsinput.keyboard.optionsgroup:option names, comma-separated without spacesNone
lys-wm-xkb-modelinput.keyboard.modelOne model name: pc105The rules' default
lys-wm-xkb-rulesinput.keyboard.rulesOne rules name: evdevevdev
lys-wm-drm-devicegpucardN or /dev/dri/cardN; never a render nodeRefused; leave the key out
lys-wm-chordbinds[].chord, submaps.*[].chordA chordRefused
lys-wm-actionevery actionAn actionRefused
lys-wm-commandworkspaces[].on_created_empty, scratchpads.*.execA shell command, run as exec runs oneNothing is run
regexrules[].app_id, rules[].title, rules[].tag, swallow.terminals, swallow.except_titleA Go (RE2) regular expressionMatches everything

XKB names are those in /usr/share/X11/xkb/rules/evdev.xml. A name with a space or comma, or an empty item in a layout or options list, is an error.

Runtime overrides ​

runtime.yaml beside the config file is merged over config.yaml (or the built-in config). lys-settings writes it, so config.yaml can stay read-only. lys-wm only reads it; a missing file means no overrides.

  • Mappings merge key by key.
  • A scalar or list replaces the value below it whole.
  • null (gaps: with nothing after it) clears the whole mapping below it.
yaml
# runtime.yaml
gaps:
  inner: 8
input:
  keyboard:
    layout: us,dk

Messages name the layer's file and line (runtime.yaml:3: gaps.inner: -1 is not zero or more). A bad override rejects the whole load. lys-wm --check-config --runtime candidate.yaml checks a candidate.

--effective-config output. source is runtime, config, or built-in when there is no config.yaml; an unlisted key has its default:

json
{
  "layers": [
    {"source": "config", "file": "/home/me/.config/lys-wm/config.yaml"},
    {"source": "runtime", "file": "/home/me/.config/lys-wm/runtime.yaml"}
  ],
  "keys": [
    {"path": ["gaps", "inner"], "source": "runtime", "file": "/home/me/.config/lys-wm/runtime.yaml", "line": 2, "value": 8}
  ]
}

A path is a list of keys (a dotted device name stays one key); a list is one value. To fold overrides into a Nix config, move every key whose source is runtime to the same path, then delete runtime.yaml.

The default look ​

An empty file looks finished: rounded corners, gaps, a soft shadow, a hairline border (the focused window's in the accent colour) and spring animations. Any key you set wins.

Some defaults depend on the renderer chosen at startup:

RendererDefault look
Vulkan on a GPUEverything; blur for clients that ask for it
Vulkan on lavapipe or SwiftShaderNo blur, the overview's included; ext_background_effect_v1 is offered without blur
Software renderer (--renderer soft)Also no shadow and no animated workspace switch

Setting decoration.blur.enabled or an enabled layer rule's blur: true takes blur back on any renderer; overview.blur, decoration.shadow.enabled and animations.events.workspaces do the same for theirs.

outputs ​

A list of rules. Each output takes the first rule that matches, else the match: "*" rule, else its preferred mode at scale 1. Only one rule may use "*".

KeyValueDefault
matchRequired. A connector name (DP-1), desc: plus the start of the EDID make, model and serial (desc:Samsung Electric Company LC32G5xT), or "*"
modepreferred; highres (largest, then fastest); <w>x<h> (fastest of that size); <w>x<h>@<hz> (closest within 1 Hz). A missing mode is reported and the current one keptpreferred
position<x>x<y> logical pixels, or auto (right of all others)auto
scale0.25 to 10, in steps of 1/1201
bitdepth8 or 10; an output that cannot do 10 stays at 8 and logs it8
vrroff, on, or fullscreen: only while one game or video surface (wp_content_type_v1 or a rule's content) alone fills the outputoff
hdrtrue, false, or fullscreen: only while one surface with an HDR image description alone fills the output, back to SDR a second after. See HDRfalse
sdr_brightnessWith hdr: cd/m² of SDR white, 1 to 10000203
hdr_peakWith hdr: display peak in cd/m², 1 to 10000EDID, else 400
iccMatrix-shaper ICC profile for an SDR output; absolute, ~/, or relative to the config file. Runs on the CRTC's colour pipeline where present, else per draw. An unreadable profile is a warning and the output stays sRGBnone
transformnormal, 90, 180, 270, flipped, flipped-90, flipped-180, flipped-270. Windows tile in the turned size; absolute pointers, touchscreens and tablets follow; captures stay uprightthe connector's panel orientation: 180 upside down, 90 left side up, 270 right side up, else normal
mirrorConnector or desc: of another output to show, letterboxed. A mirror has no workspaces, is hidden from wl_output and the layout, and has mirror_of in IPC. Black while nothing matchesnone
reserved[top, right, bottom, left] logical pixels kept free of tiled and maximized windows, on top of what bars reservenone
disabledtrue turns the output offfalse
shaderFragment shader for the final image; see Screen shaders. Re-read on reloadnone
hot_cornersfalse turns every hot corner off here; a mapping of corners replaces those corners here

Changes from wlr-output-management tools (wlr-randr, kanshi, wdisplays) replace these rules until the next reload. Rotation, unsupported VRR, unlisted modes and turning every output off are refused. While the lid is closed and another output is on and displaying, eDP-* panels are off and their workspaces move to the other outputs; with no other output they stay on. An output displays while it is on and its commits take: one whose every commit has failed for a second (a dock that went away without telling, say) is treated as unplugged until every commit to it has taken for a second. Its workspaces and windows move to the outputs left, as when it is unplugged, clients no longer see it, its connector is read again, and the panel comes back even with the lid closed. Once it displays again its workspaces return. The lid state at startup comes from logind, later changes from libinput.

HDR ​

yaml
outputs:
  - match: DP-1
    hdr: true
    sdr_brightness: 250

An HDR output carries PQ and BT.2020 at 10 bits with the panel's EDID metadata, overriding bitdepth. SDR content shows at sdr_brightness, HDR clients at their own levels, and light above the peak is compressed. The output stays SDR, and logs why, when the backend is not DRM or headless, the connector lacks HDR_OUTPUT_METADATA or Colorspace, the EDID lacks ST 2084 or BT.2020 RGB, the renderer has no float targets, or the modeset fails.

On an HDR output screen shaders and gamma control are off, only a fullscreen PQ/BT.2020 buffer matching the panel scans out directly, and translucency composites in linear light (it looks lighter than on SDR). Captures are always SDR, HDR content tone-mapped.

wp_color_manager_v1 is offered when any output has hdr: true or fullscreen, or with top-level color_management: true (default false), which also tone-maps HDR clients on SDR outputs. Client ICC profiles must be matrix-shaper with one parametric, gamma or sRGB curve; others fail with unsupported.

primary_output ​

yaml
primary_output: desc:Dell Inc. DELL U2720Q

The output desktop shells treat as primary: lys-shell shows its OSD and notification popups there while their monitor is "primary". A connector name or desc: plus the start of the EDID make, model and serial, as in an outputs match; "*" is refused. One key, so one primary: when the text matches several outputs, the first placed one is primary. IPC outputs marks it primary. Unset, or matching no placed output, nothing is primary and shells pick their own (lys-shell the first output).

virtual_outputs ​

In-memory outputs, created at startup and kept across reloads, for streaming a second screen (Sunshine, wayvnc, RustDesk) or a screencast at its own size.

yaml
virtual_outputs:
  - name: tablet
    mode: 2048x1536
KeyValue
nameRequired, unique. outputs rules match it like a connector
modeRequired. <w>x<h> or <w>x<h>@<hz>; 60 Hz without a rate

They behave like lys-wmctl output create outputs, rendering only while captured. Reloads add, remove and remake them to match; output remove refuses them; a taken name is reported and skipped. An upgrade recreates them.

input.keyboard ​

KeyValueDefault
rules, model, layout, variant, optionsXKB names, as in setxkbmapXKB_DEFAULT_* when all are unset
repeat_rateRepeats per second; 0 turns repeat off50
repeat_delayMilliseconds before repeat300
sticky_keysA modifier tapped alone applies to the next key; tapped twice it locks until tapped againfalse
slow_keysMilliseconds a key must be held to count; 0 is off0
numlockNum Lock on at startup and after every reloadfalse

lys-wmctl dispatch stickykeys on|off and slowkeys <ms> change them until the next reload.

input.pointer, input.touchpad, input.trackpoint and input.devices ​

input.touchpad applies to touchpads (devices that can tap), input.trackpoint to pointing sticks (devices udev tags ID_INPUT_POINTINGSTICK), input.pointer to other pointing devices (mice, trackballs). input.devices maps a libinput device name (as libinput list-devices prints it) to settings that override all three.

Each class has its own acceleration default, without any device rule: a touchpad and a trackpoint accelerate (accel_profile: adaptive), a mouse moves as far as the hand does (accel_profile: flat). Setting accel_profile or accel_points on a class replaces its default; a device under input.devices overrides its class. Every other key left unset keeps libinput's default for the device.

yaml
input:
  pointer:
    accel_profile: flat
  touchpad:
    tap: true
    natural_scroll: true
  devices:
    "Logitech MX Master 3":
      scroll_factor: 0.5
KeyValue
tap, drag_lockBool: tap to click; keep a tap-and-drag after the finger lifts
natural_scrollBool: content follows the fingers; also sets gesture direction
disable_while_typingBool
middle_emulationBool: left and right together is a middle click
left_handedBool: swap buttons (a tablet: turn it around)
click_methodbutton_areas, clickfinger, none
scroll_methodtwo_finger, edge, on_button_down, none
scroll_buttonButton for on_button_down: left, right, middle, side, extra, forward, back, task, or an evdev code from 1 to 65535 (275)
scroll_button_lockBool: a click on scroll_button toggles scrolling
tap_button_maplrm or lmr: buttons for one-, two-, three-finger taps
accel_profileadaptive or flat. Default flat under input.pointer, adaptive under input.touchpad and input.trackpoint; under input.devices the device's class
accel_points{step, points}: libinput custom curve, pointer speeds at device speeds 0, step, 2·step, … step above 0 up to 10000; 2 to 64 points, each 0 to 10000. Not with accel_profile
accel_speed-1 to 1
scroll_factorAbove 0, up to 100. Default 1
disabled_on_external_mouseBool: touchpad off while another pointer is plugged in

Under input.devices a device also takes:

KeyValue
outputFor an absolute device (touchscreen, tablet): the output it covers, by connector or desc:. While that output is off the device does nothing
calibration[a, b, c, d, e, f]: libinput calibration matrix on normalized coordinates
region[x, y, width, height], fractions of a tablet's surface, stretched over its output
keyboardrules, model, layout, variant, options for this keyboard alone, replacing the seat's names whole (an unset key takes the XKB default)

An unset key keeps libinput's default. A setting a device lacks is skipped, or reported when named under devices. Applies on the drm backend only.

cursor ​

KeyValueDefault
hide_while_typingHide the pointer when a key that is neither a bind nor a lone modifier reaches a windowfalse
hide_afterMilliseconds without pointer input before hiding; 0 never. Never during a button hold, move, resize, drag or pointer lock0
shake_to_findShaking the mouse grows the pointer to three times its size brieflyfalse

Any pointer, touch or pen event shows it again. When lys-wm starts over a frame it inherited from a splash or the greeter, which shows no pointer, the pointer stays hidden until the first such event. Pointer size comes from XCURSOR_SIZE.

Colours ​

A colour is a palette name or #rrggbb[aa]. The palette is Catppuccin Mocha (mauve, crust, surface0, …) plus accent. palette adds or overrides names, with #rrggbb[aa] values:

yaml
palette:
  accent: "#ff8800"

accent follows the accent-color xdg-desktop-portal publishes (in a lys-shell session, styling.palette.primary) and reloads the config live when it changes; until one is published it is #e0947a. Setting accent under palette pins it.

borders ​

KeyValueDefault
widthLogical pixels, 0 or more1
activeColour or gradientaccent
inactiveColour or gradient#ffffff14

A gradient is 2 to 10 colours along angle degrees (0, the default, is left to right; clockwise):

yaml
borders:
  active: {colors: [mauve, blue], angle: 45}

decoration ​

KeyValueDefault
roundingCorner radius in logical pixels, 0 or more. Fullscreen windows stay square8
active_opacity0 to 11
inactive_opacity0 to 11
fullscreen_opacity0 to 11
dim_inactiveDarken every window but the focused onefalse
dim_strength0 to 1, for dim_inactive and dim_around0.5

Opacity multiplies what the client draws; borders stay opaque. A rule's opacity replaces these. Rounded or translucent windows are never scanned out directly.

decoration.shadow ​

KeyValueDefault
enabledShadow under every non-fullscreen window (see the default look)true
rangeFade distance in logical pixels, 0 or more24
render_powerFade speed, 1 (linear) to 42
sharpHard edge, no fadefalse
offset[x, y] logical pixels[0, 8]
scaleSize relative to the window, above 0 up to 11
colorColour#00000060
color_inactiveColour for unfocused windows#00000038, or color when set

decoration.blur ​

Blurs what lies behind translucent windows, layer surfaces whose layer rule sets blur, and their popups.

KeyValueDefault
enabledBlur behind every translucent window and its popupsfalse
sizeDistance between taps, logical pixels, 1 or more6
passes1 to 4; each doubles the reach2
xrayBlur only the background and bottom layers, one shared blur per outputfalse
live_tiledtrue blurs what is behind each tiled window; false gives tiled windows the shared background blurfalse
tintColour over the blurred backdropnone
saturation0 to 4, CSS saturate()1.3
brightness0 to 4, CSS brightness()1
contrast0 to 4, CSS contrast()1
grainLuminance noise, 0 to 10
refraction.bezelLogical pixels in from the edge where the backdrop bends, 0 or more16 when refraction is set
refraction.amountLogical pixels it looks past the edge, 0 or more8 when refraction is set
specular.strengthRim sheen brightness, 0 to 10.6 when specular is set
specular.widthRim width, logical pixels, 1 or more1 when specular is set
mica.enabledDraw translucent window parts over a heavy blur of the background and bottom layers, shared per outputfalse
mica.sizeAs size16
mica.passesAs passes4
mica.tintReplaces tint for mica windowsnone

Saturation, brightness and contrast apply in that order, then tint, then grain. The sheen faces the pointer; with reduced motion or animations off it rests at the top left.

Client blur regions (ext_background_effect_v1) are honoured whether or not enabled is set, using this section's settings, and replace whole-surface blur. A CPU renderer withholds them unless enabled or a layer rule's blur is set. A window rule's blur: false turns them off for that window.

drag_preview ​

While a window is dragged with movewindow, a translucent rectangle bordered in borders.active shows where it will land. A tiled window lands at its place in the tree. A floating window lands under the pointer, or snaps when the pointer is within snap_distance of a usable-area edge not shared with another output:

Pointer nearWindow lands on
Left or right edgeThat half
Bottom edgeBottom half
Top edgeWhole usable area
A cornerThat quarter
KeyValueDefault
enabledOff: no preview and no snappingtrue
opacityFill opacity, 0 to 10.25
blurBlur behind the rectangle with decoration.blurfalse
snap_distanceLogical pixels, 1 or more16
snap_windowsFloating windows also snap beside (gaps.inner apart) or aligned with other floating windowsfalse
drag_switch.widthLogical pixels from an output edge with no neighbour, 1 or more4
drag_switch.framesFrames a drag must be held there, 1 or more30

A drag held within drag_switch.width of such an edge for drag_switch.frames switches to the previous or next workspace (vertically for slidevert), taking a dragged window along. Holding a client drag over a background tab raises it.

floating ​

KeyValueDefault
stepLogical pixels move <dir> moves a floating window, 1 or more40
popup_windowstrue opens popup windows floatingtrue

At the usable area's edge the window crosses to the next output. For place see actions.

gaps ​

KeyValueDefault
innerLogical pixels between tiled windows, 0 or more8
outerLogical pixels to the usable area's edges: one number or [top, right, bottom, left], 0 or more8

Floating and fullscreen windows ignore gaps.

animations ​

yaml
animations:
  enabled: true
  reduced_motion: false
  curves:
    snappy: {bezier: [0.05, 0.9, 0.1, 1.05]}
    wobbly: {spring: {stiffness: 200, damping: 12, mass: 1}}
  events:
    global: {curve: snappy, duration: 300}
    windows_move: {curve: wobbly}
KeyValueDefault
enabledBooltrue
reduced_motionBool: events marked still below happen at once; fade and cross-fade become plain ease_out fades. Reported by lys-wmctl reducedmotion and IPC; lys-shell follows it and publishes it to apps through the portalfalse
curvesNamed curves: bezier: [x1, y1, x2, y2] (x in 0 to 1) or spring: {stiffness, damping, mass} (all above 0, mass default 1)
eventsPer event: enabled, curve, duration (milliseconds, above 0; bézier only), style

Built-in curves, not redefinable: linear, ease, ease_in, ease_out, ease_in_out (CSS) and spring (stiffness 170, damping 26).

An event's unset key comes from its parent, else its default motion below. A duration with no curve runs ease_out. An unknown event is a warning.

EventDefault motionDefault style
windows_movespring 800, 54
windows_inspring 700, 40popin 92%
windows_outspring 900, 56popin 94%
windows_minimizespring 220, 30genie
workspacesspring 900, 60slide
scratchpadspring 900, 60slidevert
overviewspring 300, 34 (a spring unless this event names a curve)
layers_inspring 800, 54fade
layers_outspring 900, 58popin 108%
fadespring 800, 56
fade_outspring 900, 56
snap, zoomspring unless given a curve or duration
borderangleoffonce
othersinherited; global is ease_out over 250 ms
EventParentAnimatesStylesReduced motion
globalDefaults for allfade
windowsglobalEvery window animationstill
windows_movewindowsA tile moving or resizing; a resize waits until every affected window has drawn its new size, up to 100 ms (layout changes land together)morph (stretches toward its target as a liquid blob), elastic (a mouse-dragged window bends like jelly)still
windows_inwindowsA window appearingpopin <percent>, slide, bud (grows out of the nearest window)still
windows_outwindowsA window closingpopin <percent> (up to 200%: above 100% it grows as it fades), slide, budstill
windows_minimizewindowsMinimizing and restoringgenie (toward the taskbar's rectangle, else the nearest edge), fadecross-fade
overviewglobalThe overview opening, closing and rearrangingstill
fadeglobalEvery fadefade
fade_infadeA window or the session lock fading in, and the first frames over a frame lys-wm inherited from a splash or the greeterfade
fade_outfadeA window or the session lock fading outfade
fade_switchfadeActive/inactive opacity changefade
fade_dimfadedim_inactive coming and goingfade
fade_shadowfadeShadow color/color_inactive changefade
borderangleglobalA gradient border's angleonce (one turn on focus change), loop (one turn per duration, continuously)still
workspacesglobalSwitching an output's workspaceslide, slidevert, fade, popin <percent>, goocross-fade
scratchpadglobalA scratchpad showing or hidingslidevert, fade, popin <percent>cross-fade
layersglobalEvery layer-shell surface animationfade
layers_inlayersA layer surface mappingslide, popin <percent>, fadecross-fade
layers_outlayersA layer surface unmappingslide, popin <percent> (up to 200%: above 100% it grows around its centre as it fades, the way macOS dismisses a popover), fadecross-fade
snapwindowsThe drag preview movingstill
fade_snapfadeThe drag preview appearing and goingfade
zoomglobalThe zoom action changing magnificationstill

A spring keeps its velocity when retargeted. A mouse-dragged window follows the pointer directly, or trails it when windows_move is a spring.

The zoom action magnifies an output around the pointer, up to 16×, without touching clients, layout or input. Captures show it unzoomed.

gestures ​

Touchpad swipes, pinches and holds, and touchscreen swipes. A gesture nothing here claims goes to the window under the pointer.

yaml
gestures:
  distance: 400
  swipe:
    - {fingers: 3, direction: horizontal, drive: workspaces}
    - {fingers: 4, direction: up, action: exec foot}
  pinch:
    - {fingers: 3, direction: in, action: kill}
    - {fingers: 2, modifiers: SUPER, direction: both, drive: zoom}
  hold:
    - {fingers: 4, action: fullscreen}
KeyValueDefault
swipeList of entries. Setting it replaces the default; [] turns swipes off3 fingers horizontal drive workspaces, vertical drive overview; with workspaces style slidevert, only vertical drive workspaces
pinchList of entriesnone
holdList of entriesnone
distanceUnaccelerated touchpad units for one whole swipe (about 12 per mm), above 0400

Each entry:

KeyValue
fingersRequired. Swipe at least 3, pinch at least 2, hold at least 1
directionRequired for swipes and pinches, not allowed for holds. Swipe: left, right, up, down, horizontal, vertical, any (only with move/resize). Pinch: in, out, both
modifiersOptional, as in a chord (SUPER + CTRL). With modifiers, fires only with exactly those held, ahead of an entry without
actionAny action except movewindow and resizewindow
driveInstead of action, follow the fingers: workspaces (swipe, horizontal/vertical), overview (swipe, up/down/vertical), view (swipe, horizontal), move and resize (swipe, any), zoom (pinch, both)
scopeOnly with drive: overview: workspace (default), output or app

Two entries for the same finger count that can match the same movement are an error. A swipe is claimed once its direction shows (the client gets a cancel) and its action runs after 100 units; a pinch at 15% scale; a hold when the fingers lift. While locked or shortcuts are inhibited, gestures go to the client.

  • workspaces: scrubs through the output's workspaces; on release, position plus velocity decides past halfway, settling on a spring.
  • overview: scrubs the overview open (up for up/vertical, down for down) on the entry's scope.
  • view: scrolls a scrolling workspace, one distance per output width, settling on a column edge.
  • zoom: zoom follows the pinch, 1 to 16.
  • move, resize: as movewindow/resizewindow with the fingers.

Swipes move the content unless natural_scroll is false for the device (input.devices, then input.touchpad); unset counts as on.

Touchscreens ​

yaml
gestures:
  edge_width: 16
  touch:
    - {edge: bottom, drive: overview}
    - {fingers: 3, direction: horizontal, drive: workspaces}
    - {fingers: 3, direction: any, drive: move}
KeyValue
edge_widthPixels from an output edge where an edge swipe starts, 1 or more. Default 16
touch[].edgetop, bottom, left, right: one finger swiping in from that edge; no direction
touch[].fingersInstead of edge: 3 to 10 fingers anywhere, with a direction as for touchpad swipes
touch[].action, touch[].driveAs for touchpad swipes; no zoom

Touches reach the window at once; after about 12 pixels in a bound direction lys-wm claims them (wl_touch.cancel). Drives use the output's size as the whole way.

hot_corners ​

yaml
hot_corners:
  top_left: {action: overview toggle}
  bottom_right: {action: global dev.stubbe.lys.shell:dashboard, modifiers: SUPER}
  pressure: 80
  fullscreen: false
KeyValueDefault
top_left, top_right, bottom_left, bottom_right{action, modifiers}: any action but movewindow/resizewindow; optional modifiers must be held. false: offoff
pressureUnaccelerated pointer units of push into the corner before it fires, above 080
fullscreenFire while a fullscreen window has focusfalse

A corner re-arms when the pointer leaves. Corners bordering another output never fire, nor while the pointer is confined or locked or the session is locked. outputs[].hot_corners overrides them per output.

overview ​

KeyValueDefault
blurBlur the layers below the windows, independent of decoration.blur.enabledtrue on a GPU, false on a slower renderer
dimHow far those layers darken, 0 to 10.35

The overview action shows every output's windows shrunk side by side without overlap, under a strip of live workspace thumbnails and a + tile. Built-in bind: SUPER + Tab.

overview [toggle|show|hide] [workspace|output|app]:

ScopeShows
workspaceDefault. The shown workspace's windows
outputEvery workspace of each output, grouped and labelled; dropping a window on another group moves it there
appWindows sharing the focused window's app_id, from everywhere, on the focused output

Another scope switches an open overview; toggle with its current scope closes it. Typing filters by title and app_id, case-insensitively. All windows take part, dialogs with their parent, minimized ones in a row at the bottom. top layers fade out; overlay stays on top. While open it has pointer and keyboard; binds with modifiers still run.

InputDoes
HoverRings a window and shows its title, or highlights a thumbnail
Click a windowFocuses (or restores) it and closes
Click a thumbnailShows that workspace; on the shown one, closes
Click +Shows the lowest free workspace number
Click elsewhere, EscapeCloses; Escape first clears a filter
Drag a window onto a thumbnail, + or another outputMoves it there with its dialogs
Arrow keys, then Return or Alt + SpaceMove the ring, then act as a click
Down with nothing below, Up with nothing aboveSwitch to the app scope for the ringed window, and back
Printable keys, BackSpaceEdit the filter
Tab, Shift + TabNext or previous window, wrapping
Alt + 1 … Alt + 9, Alt + 0Show that workspace (0 is 10)
Delete, Alt + xClose the ringed window
Shift + Left, Shift + RightMove the ringed window to the workspace one below or above
TouchAs the pointer, first finger

A session lock closes it. During a client drag, holding over a thumbnail or window for drag_preview.drag_switch.frames shows or focuses it.

switcher ​

KeyValueDefault
open_delayMilliseconds the modifiers must be held before the preview strip shows, 0 or more150

The switcher action is Alt-Tab over windows in most-recently-used order across all workspaces and outputs (switcher next app keeps to the focused app). Releasing the modifiers focuses the selection; Escape cancels. A quick tap flips to the previous window without drawing anything. Focus is recorded once it settles (a bind's at key release, hover's at the next input). focuslast, focusurgent and cycle walk the same order.

tabs ​

KeyValueDefault
heightLogical pixels, 1 or more24
paddingBetween strip and windows, 0 or more. At 0 strip and window share one outline0
text_height1 or more11
text_padding0 or more8
fontA TrueType or OpenType file; one that cannot be read or loaded fails the configThe built-in Inter Regular
icon_themeFreedesktop icon theme nameAdwaita (then hicolor)
active, inactive, urgent{background, text}; a colour left out keeps its defaultaccent/crust, surface0/text, red/crust

Tabs at least four icons wide show the window's xdg_toplevel_icon_v1 icon.

titlebars ​

An optional title bar, off by default, on floating windows that let lys-wm decorate them (xdg-decoration, KDE server decoration, X11 _MOTIF_WM_HINTS). A window that asks either Wayland protocol for client-side decorations, or KDE's for none, is told it has them and gets no bar; one that asks for server-side decorations, or leaves the choice to lys-wm, gets one. The bar shows the window buttons as coloured dots, the title centred, in the tabs font. The default colours are lys-shell's default surface, text and status colours; they do not follow its theme. Hovering a button shows the glyphs on all of them. An unfocused window's dots take the inactive text colour.

KeyValueDefault
floatingtrue turns bars onfalse
heightLogical pixels, taken from the floating rect, 1 or more24
buttonsAny of minimize, maximize, close, in order, each onceclose, minimize, maximize
sideright or leftleft
double_clickmaximize toggles maximize; float tiles the windowmaximize
active, inactive, urgent{background, text}; a colour left out keeps its default#1c1c2c/#d4d6e8, #1c1c2c/#8a8ca4, red/crust
lights.close, lights.minimize, lights.maximizeColour of that button's dot#e46870, #e0b870, #68c898

Dragging the bar moves the window. Middle click minimizes; right click sends the windowmenu IPC event.

layout and scroll ​

yaml
layout: tree
scroll:
  presets: [0.333, 0.5, 0.667, 1280px]
  center: never
KeyValueDefault
layouttree (splits and tab groups) or scroll (a strip of columns): a new workspace's layout. A workspace rule's layout wins; setlayout convertstree
scroll.presetsNon-empty list of widths columnwidth cycles: shares above 0 up to 1, or pixels (1280px)[1/3, 0.5, 2/3]
scroll.centerWhen the view scrolls to the focused column: never (just enough to show it), always, on-overflow (when not wholly shown)never

In scroll, a new window opens as a column right of the focused one, half the output wide. A column holds one window, a stack or tabs (consume, expel, columndisplay). Off-screen columns draw nothing and get frame callbacks at hidden_frame_rate.

autotile ​

KeyValueDefault
enabledBooltrue
ephemeralGroups autotile creates dissolve at one windowtrue
min_triggerPixels, 0 or more400
divisor1 or more3

When one more column would make columns narrower than the larger of min_trigger and output width / divisor, the new window stacks under the focused one.

binds and submaps ​

yaml
binds:
  - chord: SUPER + SHIFT + Q
    action: kill
  - {chord: SUPER + R, action: submap resize}
  - {chord: SUPER, action: global shell:launcher, description: Open the launcher}
  - {chord: SUPER + L, action: exec lock, long_press: 600}
  - {chord: XF86AudioPlay, action: exec lys-shell media play-pause, flags: [pass]}
  - {chord: XF86AudioStop, action: exec lys-shell media stop, flags: [pass]}
  - {chord: SUPER + mouse_down, action: workspace e+1, cooldown: 150}
submaps:
  resize:
    - {chord: Right, action: resizeactive 20 0, flags: [repeating]}
    - {chord: Escape, action: submap reset}
KeyValue
chordRequired. Modifiers and a trigger joined by +
actionRequired. See actions. submap <name> must name a defined submap
flagsList of flags, below
long_pressMilliseconds, 1 or more: fire on release only if held that long
cooldownMilliseconds, 1 or more: ignore the bind within that time of its last firing
descriptionText listed by lys-wmctl binds and the IPC binds query

Modifiers: SUPER (MOD4, WIN, LOGO), SHIFT, CTRL (CONTROL), ALT (MOD1). Triggers: a keysym from the first layout (Return, Q, XF86AudioRaiseVolume), mouse:<code> (mouse:272 is left), or mouse_up/mouse_down for the wheel. A modifier alone (SUPER, SUPER_L, ALT_R, …) fires on release when nothing else was pressed in between, and still reaches the window. Two binds with the same chord are an error.

FlagEffect
lockedWorks while the session is locked
repeatingRepeats at the keyboard repeat rate while held
releaseFires on release, only if nothing else was pressed in between
passThe focused window gets the input too
inhibit_proofRuns while a window inhibits shortcuts

A bind that fires on release cannot repeat. While a window inhibits shortcuts (VMs, remote desktops) only locked and inhibit_proof binds run.

client_hotkeys ​

yaml
client_hotkeys: true

Default false. Lets applications bind global hotkeys through the experimental xx_hotkey_v1 protocol; the focused window does not see them. Allowed triggers: anything with CTRL, ALT or SUPER; otherwise only keys that type no text or auxiliary mouse buttons. Triggers used by binds or another application are refused. Nothing fires while locked or inhibited. Sandboxed applications do not see the protocol.

focus ​

KeyValueDefault
follows_mousealways: hover focuses; loose: as always, but after focus moves another way the pointer must enter a different window first; off: click to focusloose
raise_on_hoverHover focus also raises a floating windowfalse
warp_pointeroff; on_keyboard_focus: centre the pointer on a window a key bind focuses; on_workspace_switch: only when a key bind changes the shown workspace or outputoff
on_closeAfter the focused window closes, focus next (the previously focused) or under_pointernext
on_activatefocus or urgent: what a valid xdg_activation_v1 request doesfocus

An activation token is valid when it comes from input in the focused client and focus has not moved since; other activations mark the window urgent. exec, autostart and dispatch exec pass a token (XDG_ACTIVATION_TOKEN, DESKTOP_STARTUP_ID); a window presenting it before mapping opens on the workspace shown at launch.

fullscreen ​

KeyValueDefault
new_windowA window opening where another is fullscreen or maximized: behind (the other keeps focus), take_over (gets the state), exit (state ends, new window focused)behind

fullscreen on fake tells a window it is fullscreen while it stays in its tile.

layer_rules ​

yaml
layer_rules:
  - {namespace: ^lys-shell-notification-popup$, block_out_from: screencast}

Rules for layer-shell surfaces, decided once per surface; later rules override earlier ones.

KeyValue
namespaceRequired. Regular expression on the namespace
enabledfalse: the rule is checked but not applied. Default true
blurtrue: blur behind the surface and its popups with decoration.blur
blur_alpha_threshold0 to 1: blur only under texels with alpha above it
animationfalse, or {in: <style>, out: <style>} with layers_in/layers_out styles
shadowtrue: shadow as decoration.shadow
roundingCorner radius in pixels, 0 or more
opacity0 to 1
dim_aroundtrue: darken everything below by decoration.dim_strength
block_out_fromscreencast or capture, as for windows

Only captures declared one-shot through lys_capture_hint_v1 count as screenshots; every other capture is a screencast.

workspaces ​

yaml
workspaces:
  - {id: 1, output: "desc:LG Electronics 27GL850", default: true, persistent: true}
  - {id: 9, name: chat, output: eDP-1, on_created_empty: vesktop}
  - {match: single_tiled, gaps: {inner: 0, outer: 0}, borders: {width: 0}, rounding: 0}

A rule has exactly one of id (a workspace number, 1 or more) or match (single_tiled, fullscreen or any). match rules apply after id rules, in order, and take only the look keys.

KeyValue
outputConnector or desc:: the workspace is created there and returns there
defaulttrue: the output shows it first. Needs output
persistenttrue: exists from startup and is never dropped
nameUnique; a letter, then letters, digits, - or _; not previous or empty. Accepted by workspace and movetoworkspace
on_created_emptyCommand run each time the workspace is shown empty
layouttree or scroll
gaps, borders.width, rounding, shadowLook instead of gaps, borders.width, decoration.rounding, decoration.shadow.enabled; window rules still win

swallow ​

yaml
swallow:
  terminals: ^(foot|kitty|Alacritty|org\.wezfurlong\.wezterm)$
  except_title: wev|lazygit
KeyValue
terminalsRegex on app_id. Without it nothing swallows
except_titleRegex on the new window's title: these never swallow

A window whose process descends (up to eight levels) from a matching terminal takes its place; the terminal hides until the window closes. Floating windows, dialogs, rule-placed windows, sandboxed or other-pid-namespace clients and floating terminals never swallow. swallow off|on toggles it.

scratchpads ​

yaml
scratchpads:
  term: {exec: foot --app-id dropterm, size: 60%x50%}
  music: {exec: spotify, hide_on_workspace_switch: false}
KeyValueDefault
execCommand run when toggled while empty; its window lands in the scratchpadnone
size<w>%x<h>%, each 1% to 100% of the usable area, centredwhole area
hide_on_workspace_switchHide when the output switches workspacetrue

scratchpad toggle <name> shows a named set of windows over the focused output, dimming the workspace by decoration.dim_strength. movetoscratchpad <name> adds a window, movetoworkspace removes it. A scratchpad needs no entry here. ext-workspace lists it as hidden workspace scratchpad:<name>.

showdesktop ​

KeyValueDefault
peekPercent of the output's width left visible of each window, 1 to 502

showdesktop slides the output's windows (every output's with all) to their nearest edges. A click on a sliver, a new window, a workspace switch or the action again brings them back.

rules ​

yaml
rules:
  - {app_id: ^steam$, float: true}
  - {app_id: ^steam$, title: ^Friends List$, size: 400x900}
  - {app_id: ^(discord|spotify)$, workspace: 9 silent, output: eDP-1}
  - {app_id: ^keepassxc$, title: Unlock, focus: false, position: center}
  - {app_id: ^steam_app_, fullscreen: false, suppress: [fullscreen]}
  - {initial_title: ^Picture-in-Picture$, float: true, size: 25%x25%, position: 74%x72%, pin: true}

Later rules override earlier ones. A rule needs at least one matcher. enabled: false keeps a rule in the file, checked like any other, without applying it; the default is true. lys-wmctl dispatch setprop <id> <key> <value> applies a rule key to one window until it closes (setprop 7 border {width: 4}).

MatcherMatches
app_id, titleRE2 regex. For X11, app_id is the WM_CLASS class
tagRegex on the xdg_toplevel_tag_v1 tag; the empty string without one
initial_app_id, initial_titleRegex on the values at first map
xwaylandtrue X11, false Wayland
is_floating, is_focused, is_fullscreen, is_urgent, is_capturedBool state, re-checked when it changes
excludeA non-empty mapping of matchers; matching windows are dropped

Placement, applied once at first map:

KeyValue
float, tiletrue (not both): where a new window goes
workspace<n> (open there and follow) or <n> silent
outputConnector or desc:: open on its shown workspace
focusfalse: open without focus or urgency
fullscreen, maximizedtrue opens so; false refuses the request before map
positionFloating: center, cursor, or <x>x<y> in pixels or percent of the usable area
size<w>x<h> in pixels or percent of the usable area, above 0
grouptab, h or v: open inside the focused window's group of that layout
suppressList of fullscreen, maximize, activate: always ignore those requests
pintrue: pinned to every workspace of its output, floating
remembertrue: a floating window opens at the place and size the last window with its app ID had when it closed, on that output, until lys-wm exits; placed as usual when that output is gone

A window launched by exec opens on its launching workspace unless workspace or output says otherwise.

Properties, held while the rule matches:

KeyValue
border{active, inactive, width}, each optional, as in borders
roundingPixels, 0 or more
shadowBool
dim_inactiveBool
dim_aroundtrue: darken everything below by decoration.dim_strength
opacity0 to 1, focused or not
blurBool, for the window and its popups; false also ignores client blur regions and mica
micaBool
blur_lookdecoration.blur look keys: tint, saturation, brightness, contrast, grain, refraction, specular
animationfalse, or {in: <style>, out: <style>} with windows_in/windows_out styles
idle_inhibitvisible, focus or fullscreen: block idle while the window is shown, focused, or fullscreen
vrrtrue: adaptive sync on its output while shown
tearingBool, overriding wp_tearing_control_v1 (see tearing)
contentnone, photo, video, game, overriding wp_content_type_v1 (affects vrr: fullscreen and tearing)
on_activatefocus, urgent or ignore, overriding focus.on_activate
scroll_factorAbove 0, up to 100
min_size, max_size<w>x<h> pixels, above 0
keep_aspectBool: resizing a floating window keeps its aspect
touch_gesturesfalse: no touch gesture claims touches starting on it
block_out_fromscreencast: black in screencasts but not screenshots; capture: black in every capture
above_layerstrue: a floating window is drawn, and takes the pointer, over every layer surface but the overlay surfaces that do not span their output (notifications, OSDs); the lock screen stays over it

Without a rule a window floats when it has a parent or a fixed size, is an X11 modal or dialog-type window, or is a popup window. A popup window asks for another decoration mode (client-side, server-side or KDE's none) than the first open window of its client that asked for one: browsers draw their own title bar on their main windows and ask lys-wm to decorate the popups a page opens with window.open (a sign-in, a passkey selector, an extension's window), and a frameless Electron window asks for client-side decorations beside its framed main window. A client's first window never is one. A popup window opens centred over that first window, clamped to its output, at the size it chooses: a window geometry set before its first buffer is no size. floating.popup_windows: false turns this off; a tile rule tiles one. lys's Quick Look (app ID dev.stubbe.lys.QuickLook) floats with remember and above_layers, so it shows over the launcher it opens from; a rule of the config overrides either. An xdg_dialog_v1 counts only on a window with a parent, as the protocol defines; GTK 4 attaches one to every window.

env and autostart ​

yaml
env:
  QT_QPA_PLATFORM: wayland;xcb
autostart:
  - waybar

env is set in lys-wm's environment at startup, so everything it runs inherits it. XDG_CURRENT_DESKTOP=lys-wm and XDG_SESSION_TYPE=wayland are set unless overridden. WAYLAND_DISPLAY, DISPLAY and LYS_WM_SOCKET are refused. XCURSOR_* also sets lys-wm's own pointer.

Each autostart command runs once with sh -c once the display and IPC socket are up. Reloads change neither key. Failures are logged.

xwayland ​

KeyValueDefault
enabledfalse: no X sockets, DISPLAY unsettrue
zero_scalingX programs see outputs at physical resolution, scale 1 (sharp, small on scaled outputs). false: X windows are stretched (right size, blurry)true

Xwayland starts on the first X client. Both keys are read at startup only.

tearing ​

yaml
tearing: true
rules:
  - {app_id: ^cs2$, tearing: true}

Default false. When true, a window that fills an output and scans out directly uses async page flips if a rule says tearing: true, it asks via wp_tearing_control_v1, or it states nothing and is a game. A rule with tearing: false, or a vsync hint without a rule, keeps vblank. Needs atomic async flips (Linux 6.8 or later).

hidden_frame_rate ​

yaml
hidden_frame_rate: 5

Default 15, a positive integer: frame callbacks per second for a surface fully covered by opaque windows or on no output. A window hidden for two seconds sleeps and gets none until it is shown again.

power_saver_frame_rate ​

yaml
power_saver_frame_rate: 0

Default 60, an integer 0 or more; 0 is off. While lys-power's profile is power-saver, a faster output composites every k-th vblank (k is refresh / rate rounded up) and its surfaces get frame callbacks at that rate. Under adaptive sync it is a minimum frame interval. The internal panel (eDP-*) also switches to its slowest mode of the same size at or above the rate, so the panel itself scans out slower (a 120 Hz panel that lists a 60 Hz timing drops to it), and its hdr: true acts as hdr: fullscreen. Both are restored when the profile changes again.

hold_opening ​

yaml
hold_opening: true

Default false: a new window shows as soon as it has drawn at its placement, and resized neighbours are stretched until they redraw. true waits up to 100 ms for them first.

lid_action ​

yaml
lid_action: suspend-then-hibernate

On the drm backend, unless this key is logind, lys-wm inhibits logind's lid handling and applies the lid policy itself: when the lid is closed, no output besides the eDP-* panels is on and displaying (as for the panel rule in outputs), and the machine is on battery, it asks logind for the sleep this key names. auto (the default) is suspend-then-hibernate where logind's CanSuspendThenHibernate answers yes, and suspend everywhere else. The other values are logind's HandleLidSwitch sleeps, each calling the logind method of that name: suspend, hibernate, hybrid-sleep and suspend-then-hibernate (which hibernates after logind's HibernateDelaySec, or, where that is unset, before the battery runs low). ignore does nothing on a lid close, and logind does nothing either, since lys-wm still holds its inhibitor. logind takes no inhibitor and applies no policy, leaving the lid to logind's HandleLidSwitch; the greeter's kiosk config sets it, since a user the system does not trust with the handle-lid-switch inhibitor, as greetd's greeter is, cannot take it. lys-shell's idle policy takes the sleeps in idle.suspend-action. Read at startup.

gpu ​

yaml
gpu: card1

The rendering DRM card, cardN or /dev/dri/cardN. Default: the boot VGA device if it has a render node, else the first card with one. Read at startup.

Locking ​

lys-wm implements ext-session-lock-v1. While locked only lock surfaces render and get input, and only locked binds run. The lock fades on fade_in and fade_out. If the locker dies the session stays locked on a red screen. The locker, not lys-wm, sets logind's LockedHint.

Session ​

lys-wm --systemd:

  • Exports env, PATH, WAYLAND_DISPLAY, DISPLAY and LYS_WM_SOCKET to D-Bus activation and the systemd user manager.
  • Starts lys-wm-session.target, which binds graphical-session.target and wants xdg-desktop-autostart.target, so XDG autostart entries start (X-GNOME-Autostart-enabled is ignored; disable with Hidden=true).
  • On exit stops the target and restores the user manager's environment.

Display manager sessions should use --systemd; nested sessions should not.

The package installs lys-wm-portals.conf, routing every portal to lys-shell's backend alone. Portal backends are D-Bus activated, so they need --systemd.

Released under the MIT License.