Skip to content

support for ext-foreign-toplevel-image-capture-source-manager-v1#107

Draft
russelltg wants to merge 2 commits into
mainfrom
toplevel
Draft

support for ext-foreign-toplevel-image-capture-source-manager-v1#107
russelltg wants to merge 2 commits into
mainfrom
toplevel

Conversation

@russelltg

Copy link
Copy Markdown
Owner

new flag --toplevel to specify this

(not done yet & entirely untested)

@russelltg

russelltg commented Sep 30, 2025

Copy link
Copy Markdown
Owner Author

Script to select toplevel ID with slurp:

swaymsg -t get_tree | jq  -r "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | "\(.rect.x+.window_rect.x),\(.rect.y+.window_rect.y) \(.window_rect.width)x\(.window_rect.height)"' | slurp -f '.. | select(.pid? and .visible?) | select (.rect.x + .window_rect.x == %x and .rect.y + .window_rect.y == %y) | .foreign_toplevel_identifier')"

@russelltg russelltg force-pushed the toplevel branch 4 times, most recently from 80fd9da to 2e68c4f Compare November 30, 2025 03:47
@russelltg russelltg mentioned this pull request Dec 29, 2025
@myamusashi

Copy link
Copy Markdown

I'm testing it, is this video quality expected? It does not look really good

screenrecord.mp4

@myamusashi

Copy link
Copy Markdown

Maybe because of my monitor, I don't know. Is there anything that I can improve the quality?

@russelltg

Copy link
Copy Markdown
Owner Author

--bitrate flag may be able to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants