wm/

directory
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT

README

lys-wm

lys-wm

The tiling Wayland compositor of lys, in pure Go (CGO_ENABLED=0).

Documentation

hy3-style tiling with splits and tab groups, on DRM/KMS through logind and libinput, with NVIDIA and Mesa, several GPUs, the protocols a full desktop session needs, and Xwayland for X11 programs. Scope has the whole list and the non-goals.

Install

The manual's install section covers NixOS (lys.nixosModules.lys-wm), the Debian, Ubuntu and Fedora packages and the tarball. lys-wm's install page lists what each installs and needs.

Use

Pick the lys-wm session in your display manager, or run lys-wm inside another Wayland session to get a nested window. SUPER + Return runs foot, SUPER + Q closes a window and SUPER + SHIFT + E leaves the session.

lys-wmctl windows                # query a running lys-wm
lys-wmctl dispatch workspace 3   # or control it

Directories

Path Synopsis
cmd
lys-wm command
Command lys-wm is a pure-Go tiling Wayland compositor.
Command lys-wm is a pure-Go tiling Wayland compositor.
lys-wm-pace command
Command lys-wm-pace boots lys-wm with its frame trace on, drives every animation through a real client and the IPC socket, and reports how smoothly each one reached the screen.
Command lys-wm-pace boots lys-wm with its frame trace on, drives every animation through a real client and the IPC socket, and reports how smoothly each one reached the screen.
lys-wmctl command
Command lys-wmctl queries and controls a running lys-wm over its IPC socket.
Command lys-wmctl queries and controls a running lys-wm over its IPC socket.
internal
alphamodifier
Package alphamodifier implements wp_alpha_modifier_v1: clients fade a surface by an opacity factor the compositor applies when it draws it.
Package alphamodifier implements wp_alpha_modifier_v1: clients fade a surface by an opacity factor the compositor applies when it draws it.
anim
Package anim is the animation engine: easing curves, springs, tweens that sample them at a monotonic time, and the per-event table the config builds.
Package anim is the animation engine: easing curves, springs, tweens that sample them at a monotonic time, and the per-event table the config builds.
backend
Package backend abstracts outputs and input devices so the compositor runs headless, nested or on DRM.
Package backend abstracts outputs and input devices so the compositor runs headless, nested or on DRM.
backend/drm
Package drm is the native backend: one DRM device driven with atomic KMS, scanning out buffers the Vulkan renderer exports or GBM allocates for GLES.
Package drm is the native backend: one DRM device driven with atomic KMS, scanning out buffers the Vulkan renderer exports or GBM allocates for GLES.
backend/headless
Package headless is a backend with virtual outputs rendered in software and synthetic input devices, for tests and the compositor-in-the-loop harness.
Package headless is a backend with virtual outputs rendered in software and synthetic input devices, for tests and the compositor-in-the-loop harness.
backend/nested
Package nested runs lys-wm as a client of a host Wayland compositor: each output is a host window and the host seat is lys-wm's input.
Package nested runs lys-wm as a client of a host Wayland compositor: each output is a host window and the host seat is lys-wm's input.
backend/virtual
Package virtual is an output that exists only in memory: whatever backend runs the session, it renders offscreen with the session's renderer, paced by its own frame clock at its mode's refresh rate, and never presents.
Package virtual is an output that exists only in memory: whatever backend runs the session, it renders offscreen with the session's renderer, paced by its own frame clock at its mode's refresh rate, and never presents.
backgroundeffect
Package backgroundeffect implements ext_background_effect_v1: clients name the region of a surface whose background the compositor blurs.
Package backgroundeffect implements ext_background_effect_v1: clients name the region of a surface whose background the compositor blurs.
binds
Package binds maps typed input chords to window manager actions, with submaps and bind flags.
Package binds maps typed input chords to window manager actions, with submaps and bind flags.
colormanager
Package colormanager implements wp_color_manager_v1: clients learn what each output shows and what each surface would best hold, describe an encoding by parameters or an ICC profile, and tag surfaces with it.
Package colormanager implements wp_color_manager_v1: clients learn what each output shows and what each surface would best hold, describe an encoding by parameters or an ICC profile, and tag surfaces with it.
colorrep
Package colorrep implements wp_color_representation_manager_v1: a client says how its YCbCr surface encodes colour, which the compositor uses to decode it instead of guessing from the buffer size.
Package colorrep implements wp_color_representation_manager_v1: a client says how its YCbCr surface encodes colour, which the compositor uses to decode it instead of guessing from the buffer size.
colorspace
Package colorspace is the colour maths of HDR output and colour-managed surfaces: what a pixel encoding means, what an output's encoding is, and the transform from one to the other.
Package colorspace is the colour maths of HDR output and colour-managed surfaces: what a pixel encoding means, what an output's encoding is, and the transform from one to the other.
committiming
Package committiming implements wp_commit_timing_manager_v1: a content update can carry a target time, and it waits until the refresh that presents it would not show it before that time.
Package committiming implements wp_commit_timing_manager_v1: a content update can carry a target time, and it waits until the refresh that presents it would not show it before that time.
compositor
Package compositor connects backend events to the server and draws each output's frames.
Package compositor connects backend events to the server and draws each output's frames.
config
Package config reads lys-wm's YAML config into validated types.
Package config reads lys-wm's YAML config into validated types.
contenttype
Package contenttype implements wp_content_type_manager_v1: a surface says whether it shows a photo, a video or a game, which the compositor uses where it decides presentation per surface.
Package contenttype implements wp_content_type_manager_v1: a surface says whether it shows a photo, a video or a game, which the compositor uses where it decides presentation per surface.
ctmcontrol
Package ctmcontrol implements hyprland_ctm_control_manager_v1: the first client to bind it sets the colour transform matrix of outputs, as hyprsunset does, and every output it changed returns to the identity when it lets go.
Package ctmcontrol implements hyprland_ctm_control_manager_v1: the first client to bind it sets the colour transform matrix of outputs, as hyprsunset does, and every output it changed returns to the identity when it lets go.
data
Package data implements the clipboard, the primary selection and drag and drop: wl_data_device_manager and zwp_primary_selection_device_manager_v1.
Package data implements the clipboard, the primary selection and drag and drop: wl_data_device_manager and zwp_primary_selection_device_manager_v1.
dmabuf
Package dmabuf implements zwp_linux_dmabuf_v1: clients share GPU buffers as dmabuf planes, checked against what the renderer can import, and learn the formats, modifiers and device through feedback, which for a surface that could reach a display plane leads with what that plane scans out.
Package dmabuf implements zwp_linux_dmabuf_v1: clients share GPU buffers as dmabuf planes, checked against what the renderer can import, and learn the formats, modifiers and device through feedback, which for a surface that could reach a display plane leads with what that plane scans out.
fdmsg
Package fdmsg sends JSON messages with file descriptors over a SOCK_SEQPACKET Unix socket, one message per packet.
Package fdmsg sends JSON messages with file descriptors over a SOCK_SEQPACKET Unix socket, one message per packet.
fifo
Package fifo implements wp_fifo_manager_v1: a content update can set a barrier on its surface when it applies, and a later update can wait for the next latching deadline to clear it, so Vulkan FIFO presentation shows every frame for at least one refresh.
Package fifo implements wp_fifo_manager_v1: a content update can set a barrier on its surface when it applies, and a later update can wait for the next latching deadline to clear it, so Vulkan FIFO presentation shows every frame for at least one refresh.
frametrace
Package frametrace records what each composited frame cost and when it reached the screen, as JSON lines, for measuring smoothness.
Package frametrace records what each composited frame cost and when it reached the screen, as JSON lines, for measuring smoothness.
gammacontrol
Package gammacontrol implements zwlr_gamma_control_manager_v1: one client at a time sets an output's gamma ramps, as night-light tools do, and the output returns to the identity when it lets go.
Package gammacontrol implements zwlr_gamma_control_manager_v1: one client at a time sets an output's gamma ramps, as night-light tools do, and the output returns to the identity when it lets go.
golden
Package golden compares rendered frames with PNG images under testdata.
Package golden compares rendered frames with PNG images under testdata.
gpu
Package gpu binds libEGL, libGLESv2 and libgbm through purego: displays on the GBM, device and surfaceless platforms, GLES2 contexts, dmabuf images, native fences and buffer allocation.
Package gpu binds libEGL, libGLESv2 and libgbm through purego: displays on the GBM, device and surfaceless platforms, GLES2 contexts, dmabuf images, native fences and buffer allocation.
handover
Package handover moves a running session's kernel objects and state to the next lys-wm process over a Unix socket.
Package handover moves a running session's kernel objects and state to the next lys-wm process over a Unix socket.
harness
Package harness boots the compositor on the headless backend for integration tests and drives real clients against it.
Package harness boots the compositor on the headless backend for integration tests and drives real clients against it.
hyprlandsurface
Package hyprlandsurface implements hyprland_surface_manager_v1: clients fade a surface by an overall opacity and name the part of its buffer that holds visible content, which the compositor draws alone.
Package hyprlandsurface implements hyprland_surface_manager_v1: clients fade a surface by an overall opacity and name the part of its buffer that holds visible content, which the compositor draws alone.
idle
Package idle implements ext_idle_notifier_v1 and zwp_idle_inhibit_manager_v1: idle timers that input resets, and inhibitors that hold them off while their surface is on screen.
Package idle implements ext_idle_notifier_v1 and zwp_idle_inhibit_manager_v1: idle timers that input resets, and inhibitors that hold them off while their surface is on screen.
inputmethod
Package inputmethod implements zwp_text_input_manager_v3, zwp_text_input_manager_v1 and zwp_input_method_manager_v2: the focused client's enabled text input and the seat's input method relay state, text, preedit and deletions to each other, the input method can grab the keyboard, and its popups follow the text cursor.
Package inputmethod implements zwp_text_input_manager_v3, zwp_text_input_manager_v1 and zwp_input_method_manager_v2: the focused client's enabled text input and the seat's input method relay state, text, preedit and deletions to each other, the input method can grab the keyboard, and its popups follow the text cursor.
ipc
Package ipc serves lys-wm's state, actions and events over a Unix socket as JSON lines, for lys-wmctl, bars and scripts.
Package ipc serves lys-wm's state, actions and events over a Unix socket as JSON lines, for lys-wmctl, bars and scripts.
loop
Package loop is the single-threaded event loop that owns compositor state.
Package loop is the single-threaded event loop that owns compositor state.
looptest
Package looptest runs a loop.Loop on the test's own goroutine until what the test waits for holds, so the condition reads the loop's state without a lock.
Package looptest runs a loop.Loop on the test's own goroutine until what the test waits for holds, so the condition reads the loop's state without a lock.
output
Package output advertises backend outputs to clients as wl_output and zxdg_output_v1 objects, with their place in the logical layout and scale.
Package output advertises backend outputs to clients as wl_output and zxdg_output_v1 objects, with their place in the logical layout and scale.
outputmanagement
Package outputmanagement implements zwlr_output_manager_v1: display configuration tools such as wlr-randr, kanshi and wdisplays list the outputs with their modes and change them as one configuration.
Package outputmanagement implements zwlr_output_manager_v1: display configuration tools such as wlr-randr, kanshi and wdisplays list the outputs with their modes and change them as one configuration.
outputpower
Package outputpower implements zwlr_output_power_manager_v1: clients such as idle daemons turn outputs off and on.
Package outputpower implements zwlr_output_power_manager_v1: clients such as idle daemons turn outputs off and on.
powerprofile
Package powerprofile follows power-profiles-daemon's active profile on the system bus, so lys-wm can save power while the user asked for it.
Package powerprofile follows power-profiles-daemon's active profile on the system bus, so lys-wm can save power while the user asked for it.
region
Package region is a set of pixels described by disjoint rectangles.
Package region is a set of pixels described by disjoint rectangles.
render
Package render defines the renderer interface that the software, GLES and Vulkan renderers implement.
Package render defines the renderer interface that the software, GLES and Vulkan renderers implement.
render/gles
Package gles is the GLES2 renderer: shm textures, premultiplied blending, and passes into framebuffers backed by textures or dmabufs.
Package gles is the GLES2 renderer: shm textures, premultiplied blending, and passes into framebuffers backed by textures or dmabufs.
render/rendertest
Package rendertest holds the scene and checks every renderer's tests share, so each GPU renderer is held to the software renderer's pixels.
Package rendertest holds the scene and checks every renderer's tests share, so each GPU renderer is held to the software renderer's pixels.
render/soft
Package soft is the CPU renderer over premultiplied ARGB8888 buffers.
Package soft is the CPU renderer over premultiplied ARGB8888 buffers.
render/vulkan
Package vulkan renders the compositor's frames with Vulkan through lys-lib's gpu package, the stack lys-ui and lys-shell draw with.
Package vulkan renders the compositor's frames with Vulkan through lys-lib's gpu package, the stack lys-ui and lys-shell draw with.
rtkit
Package rtkit asks RealtimeKit on the system bus to raise a thread's scheduling priority, for a process that has neither the limit nor the capability to raise it itself.
Package rtkit asks RealtimeKit on the system bus to raise a thread's scheduling priority, for a process that has neither the limit nor the capability to raise it itself.
rtkit/rtkittest
Package rtkittest serves a fake RealtimeKit on a private bus, for tests of code that asks rtkit for a thread's priority.
Package rtkittest serves a fake RealtimeKit on a private bus, for tests of code that asks rtkit for a thread's priority.
scanner command
Command scanner generates Wayland protocol bindings from the XML listed in internal/protocol/protocols.json.
Command scanner generates Wayland protocol bindings from the XML listed in internal/protocol/protocols.json.
seat
Package seat implements wl_seat with its keyboard, pointer and touch: keymaps, focus, and delivering input to the focused clients.
Package seat implements wl_seat with its keyboard, pointer and touch: keymaps, focus, and delivering input to the focused clients.
securitycontext
Package securitycontext implements wp_security_context_manager_v1: sandbox engines such as Flatpak register a socket for their apps, and the server tags every client that connects through it, so the compositor can keep privileged globals from them.
Package securitycontext implements wp_security_context_manager_v1: sandbox engines such as Flatpak register a socket for their apps, and the server tags every client that connects through it, so the compositor can keep privileged globals from them.
server
Package server accepts Wayland clients and runs the core protocol objects.
Package server accepts Wayland clients and runs the core protocol objects.
session
Package session gives lys-wm its seat: devices through logind, VT switching, and device discovery.
Package session gives lys-wm its seat: devices through logind, VT switching, and device discovery.
shader
Package shader compiles the one language lys-wm's screen shaders are written in, a subset of GLSL ES 1.00, and hands it to each renderer in the form it takes: GLSL for GLES, SPIR-V for Vulkan and a Go program for the CPU.
Package shader compiles the one language lys-wm's screen shaders are written in, a subset of GLSL ES 1.00, and hands it to each renderer in the form it takes: GLSL for GLES, SPIR-V for Vulkan and a Go program for the CPU.
shell
Package shell implements xdg-shell: the window roles clients request and the configure handshake the window manager drives.
Package shell implements xdg-shell: the window roles clients request and the configure handshake the window manager drives.
shm
Package shm implements wl_shm: client memory pools and the buffers carved out of them, read safely even when a client truncates its pool.
Package shm implements wl_shm: client memory pools and the buffers carved out of them, read safely even when a client truncates its pool.
singlepixel
Package singlepixel implements wp_single_pixel_buffer_manager_v1: one-pixel buffers of a solid premultiplied color.
Package singlepixel implements wp_single_pixel_buffer_manager_v1: one-pixel buffers of a solid premultiplied color.
spawn
Package spawn starts the processes lys-wm launches from a spawner: a child lys-wm starts before it changes its own limits or scheduling, which keeps what lys-wm started with and hands it to every process it forks.
Package spawn starts the processes lys-wm launches from a spawner: a child lys-wm starts before it changes its own limits or scheduling, which keeps what lys-wm started with and hands it to every process it forks.
surface
Package surface implements wl_compositor, wl_surface, wl_region and wl_subcompositor: double-buffered surface state, subsurface trees and roles.
Package surface implements wl_compositor, wl_surface, wl_region and wl_subcompositor: double-buffered surface state, subsurface trees and roles.
syncobj
Package syncobj implements wp_linux_drm_syncobj_manager_v1: explicit synchronization through DRM timeline syncobjs.
Package syncobj implements wp_linux_drm_syncobj_manager_v1: explicit synchronization through DRM timeline syncobjs.
systemd
Package systemd hands the session's environment to D-Bus activation and the systemd user manager, and runs lys-wm-session.target while lys-wm runs.
Package systemd hands the session's environment to D-Bus activation and the systemd user manager, and runs lys-wm-session.target while lys-wm runs.
tabletinput
Package tabletinput carries drawing tablets and the events of their tools from the input backend to the compositor.
Package tabletinput carries drawing tablets and the events of their tools from the input backend to the compositor.
tearingcontrol
Package tearingcontrol implements wp_tearing_control_manager_v1: a surface hints that its content may be presented with tearing, which the compositor honours where the user allows it and the surface fills an output.
Package tearingcontrol implements wp_tearing_control_manager_v1: a surface hints that its content may be presented with tearing, which the compositor honours where the user allows it and the surface fills an output.
testclient
Package testclient is a scripted Wayland client for integration tests: it maps toplevels, paints shm frames and keeps animating while frame callbacks arrive.
Package testclient is a scripted Wayland client for integration tests: it maps toplevels, paints shm frames and keeps animating while frame callbacks arrive.
testenv
Package testenv decides whether tests that need tools or libraries from the dev shell skip or fail when they are missing, and gives tests directories short enough to hold Unix sockets.
Package testenv decides whether tests that need tools or libraries from the dev shell skip or fail when they are missing, and gives tests directories short enough to hold Unix sockets.
wire
Package wire encodes and decodes Wayland protocol messages on a Unix socket.
Package wire encodes and decodes Wayland protocol messages on a Unix socket.
wlclient
Package wlclient is the client side of a Wayland connection: the object map and dispatch that the generated client bindings run on.
Package wlclient is the client side of a Wayland connection: the object map and dispatch that the generated client bindings run on.
wlclient/feedback
Package feedback reads zwp_linux_dmabuf_feedback_v1 as a client: the device a compositor renders with and the format and modifier pairs each tranche of devices imports.
Package feedback reads zwp_linux_dmabuf_feedback_v1 as a client: the device a compositor renders with and the format and modifier pairs each tranche of devices imports.
wm
Package wm is the window manager's pure core: the container tree, its layout, workspaces and focus, as values with no Wayland, X11 or rendering types.
Package wm is the window manager's pure core: the container tree, its layout, workspaces and focus, as values with no Wayland, X11 or rendering types.
xkb
Package xkb compiles keymaps and tracks modifier and layout state through lys-lib's xkb, and serves keymaps to clients as sealed memfds.
Package xkb compiles keymaps and tracks modifier and layout state through lys-lib's xkb, and serves keymaps to clients as sealed memfds.
xsync
Package xsync is the part of the X SYNC extension _NET_WM_SYNC_REQUEST needs: counters and alarms.
Package xsync is the part of the X SYNC extension _NET_WM_SYNC_REQUEST needs: counters and alarms.
xwayland
Package xwayland runs Xwayland for X11 clients: it holds the X display sockets, starts Xwayland on the first connection, and matches X windows to their wl_surfaces through xwayland_shell_v1.
Package xwayland runs Xwayland for X11 clients: it holds the X display sockets, starts Xwayland on the first connection, and matches X windows to their wl_surfaces through xwayland_shell_v1.
third_party
xgb
Package XGB provides the X Go Binding, which is a low-level API to communicate with the core X protocol and many of the X extensions.
Package XGB provides the X Go Binding, which is a low-level API to communicate with the core X protocol and many of the X extensions.
xgb/composite
Package composite is the X client API for the Composite extension.
Package composite is the X client API for the Composite extension.
xgb/render
Package render is the X client API for the RENDER extension.
Package render is the X client API for the RENDER extension.
xgb/shape
Package shape is the X client API for the SHAPE extension.
Package shape is the X client API for the SHAPE extension.
xgb/xfixes
Package xfixes is the X client API for the XFIXES extension.
Package xfixes is the X client API for the XFIXES extension.
xgb/xproto
Package xproto is the X client API for the extension.
Package xproto is the X client API for the extension.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL