Add resizable virtual display feature

Introduce `--flex-display` to continuously resize the virtual display
to match the window.
This commit is contained in:
Romain Vimont 2026-04-17 08:30:25 +02:00
parent 00c941ab03
commit 3ca88616d2
18 changed files with 219 additions and 19 deletions

View file

@ -108,7 +108,8 @@ _scrcpy() {
--window-x=
--window-y=
--window-width=
--window-height="
--window-height=
-x --flex-display"
_init_completion -s || return

View file

@ -113,6 +113,7 @@ arguments=(
'--window-y=[Set the initial window vertical position]'
'--window-width=[Set the initial window width]'
'--window-height=[Set the initial window height]'
{-x,--flex-display}'[Continuously resize the virtual display to match the window]'
)
_arguments -s $arguments