New bread-screenshots crate captures a layer-shell surface (by namespace+pid, to disambiguate from an already-running instance) or the whole focused output via grim, using bread-utils::hypr/proc. bread-utils::Monitor gains a scale field and logical_size() so output geometry accounts for HiDPI/ transform, matching breadshot's proven math. bread-utils::hypr gains find_layer() over hyprctl layers -j. bread-capture is a small orchestrator that drives an app's --screenshot mode and collects the resulting PNGs; hardcoded to breadbar's two views for now.
18 lines
556 B
TOML
18 lines
556 B
TOML
[package]
|
|
name = "bread-capture"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
description = "Orchestrator for the bread ecosystem's UI screenshot tooling: drives each app's --screenshot mode and collects the resulting PNGs"
|
|
repository = "https://git.breadway.dev/Breadway/bread-ecosystem"
|
|
keywords = ["screenshot", "ci", "tooling"]
|
|
|
|
[[bin]]
|
|
name = "bread-capture"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
bread-utils = { path = "../bread-utils" }
|
|
clap = { workspace = true }
|
|
anyhow = { workspace = true }
|