diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-22 16:43:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-22 16:43:09 -0500 |
| commit | b37e4f8cb494ca14b9a00c967c7df8bd8d0a9ee1 (patch) | |
| tree | bf924a114fd1af1721ae86202f84d0f8f3a59341 /scripts/diff-lang.sh | |
| parent | 104e640bbb60a49dc363ee1731478cd81deb1cc4 (diff) | |
| download | rulesets-b37e4f8cb494ca14b9a00c967c7df8bd8d0a9ee1.tar.gz rulesets-b37e4f8cb494ca14b9a00c967c7df8bd8d0a9ee1.zip | |
feat(scripts): add off-screen launch capture, layout/size, and tests to screenshot.py
Extends screenshot.py with --launch CMD, which runs a command on a transient headless Hyprland output, captures it, and tears the output down, so a UI can be verified without touching the visible workspace. --layout (tiled/monocle/floating) and --size control placement: output resolution for tiled/monocle, window size plus centering for floating.
Refactors the testable logic (size parsing, geometry strings, window matching, the exec-rule body, centering) into pure helpers and adds test_screenshot.py covering them across normal, boundary, and error cases. The grim/hyprctl wrappers and the capture orchestration stay thin and are verified functionally.
Diffstat (limited to 'scripts/diff-lang.sh')
0 files changed, 0 insertions, 0 deletions
