Skip to content

Implement working screenshots via screencopy + libvips #34

Description

@loukamb

Problem
plugins/screenshot.lua is a no-op stub (area/fullscreen/window return nothing) yet is bound to PrintScreen in default.lua. The screencopy_manager already exists in output.lua.

Why it matters
There is no way to capture the screen, a basic expectation for a usable desktop.

Where
plugins/screenshot.lua; reuse the screencopy manager / wlr_screencopy in output.lua; encode with libvips.

Approach
Use wlr_screencopy_frame_v1 (or scene_output capture) to copy an output into a wl_shm/dmabuf buffer, read pixels, encode PNG via libvips, write to disk/clipboard. Land fullscreen first, then region (area) and per-window via scene capture.

Effort
M

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions