mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-31 05:08:59 +00:00
Add --orientation
Add a shortcut to set both the display and record orientations. PR #4441 <https://github.com/Genymobile/scrcpy/pull/4441>
This commit is contained in:
parent
a9d6cb5837
commit
b43a9e8e7a
4 changed files with 23 additions and 0 deletions
|
@ -51,6 +51,7 @@ _scrcpy() {
|
|||
--no-power-on
|
||||
--no-video
|
||||
--no-video-playback
|
||||
--orientation=
|
||||
--otg
|
||||
-p --port=
|
||||
--pause-on-exit
|
||||
|
@ -114,6 +115,7 @@ _scrcpy() {
|
|||
COMPREPLY=($(compgen -W 'front back external' -- "$cur"))
|
||||
return
|
||||
;;
|
||||
--orientation
|
||||
--display-orientation)
|
||||
COMPREPLY=($(compgen -> '0 90 180 270 flip0 flip90 flip180 flip270' -- "$cur"))
|
||||
return
|
||||
|
|
|
@ -57,6 +57,7 @@ arguments=(
|
|||
'--no-power-on[Do not power on the device on start]'
|
||||
'--no-video[Disable video forwarding]'
|
||||
'--no-video-playback[Disable video playback]'
|
||||
'--orientation=[Set the video orientation]:orientation values:(0 90 180 270 flip0 flip90 flip180 flip270)'
|
||||
'--otg[Run in OTG mode \(simulating physical keyboard and mouse\)]'
|
||||
{-p,--port=}'[\[port\[\:port\]\] Set the TCP port \(range\) used by the client to listen]'
|
||||
'--pause-on-exit=[Make scrcpy pause before exiting]:mode:(true false if-error)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue