Debian Codegraph @

app/data/zsh-completion/_scrcpy

raw
1 #compdef scrcpy scrcpy.exe
2 #
3 # name: scrcpy
4 # auth: hltdev [[email protected]]
5 # desc: completion file for scrcpy (all OSes)
6 #
7
8 local arguments
9
10 arguments=(
11 '--always-on-top[Make scrcpy window always on top \(above other windows\)]'
12 '--angle=[Rotate the video content by a custom angle, in degrees]'
13 '--audio-bit-rate=[Encode the audio at the given bit-rate]'
14 '--audio-buffer=[Configure the audio buffering delay \(in milliseconds\)]'
15 '--audio-codec=[Select the audio codec]:codec:(opus aac flac raw)'
16 '--audio-codec-options=[Set a list of comma-separated key\:type=value options for the device audio encoder]'
17 '--audio-dup=[Duplicate audio]'
18 '--audio-encoder=[Use a specific MediaCodec audio encoder]'
19 '--audio-source=[Select the audio source]:source:(output playback mic mic-unprocessed mic-camcorder mic-voice-recognition mic-voice-communication voice-call voice-call-uplink voice-call-downlink voice-performance)'
20 '--audio-output-buffer=[Configure the size of the SDL audio output buffer (in milliseconds)]'
21 {-b,--video-bit-rate=}'[Encode the video at the given bit-rate]'
22 '--background-color=[Set the background color]'
23 '--camera-ar=[Select the camera size by its aspect ratio]'
24 '--camera-high-speed=[Enable high-speed camera capture mode]'
25 '--camera-id=[Specify the camera id to mirror]'
26 '--camera-facing=[Select the device camera by its facing direction]:facing:(front back external)'
27 '--camera-fps=[Specify the camera capture frame rate]'
28 '--camera-size=[Specify an explicit camera capture size]'
29 '--camera-torch[Turn on the camera torch when the camera starts]'
30 '--camera-zoom[Specify the camera zoom initial value]'
31 '--capture-orientation=[Set the capture video orientation]:orientation:(0 90 180 270 flip0 flip90 flip180 flip270 @0 @90 @180 @270 @flip0 @flip90 @flip180 @flip270)'
32 '--crop=[\[width\:height\:x\:y\] Crop the device screen on the server]'
33 {-d,--select-usb}'[Use USB device]'
34 '--disable-screensaver[Disable screensaver while scrcpy is running]'
35 '--display-id=[Specify the display id to mirror]'
36 '--display-ime-policy[Set the policy for selecting where the IME should be displayed]'
37 '--display-orientation=[Set the initial display orientation]:orientation values:(0 90 180 270 flip0 flip90 flip180 flip270)'
38 {-e,--select-tcpip}'[Use TCP/IP device]'
39 {-f,--fullscreen}'[Start in fullscreen]'
40 '--force-adb-forward[Do not attempt to use \"adb reverse\" to connect to the device]'
41 '-G[Use UHID/AOA gamepad \(same as --gamepad=uhid or --gamepad=aoa, depending on OTG mode\)]'
42 '--gamepad=[Set the gamepad input mode]:mode:(disabled uhid aoa)'
43 {-h,--help}'[Print the help]'
44 '--ignore-video-encoder-constraints[Do not consider video encoder capabilities]'
45 '-K[Use UHID/AOA keyboard \(same as --keyboard=uhid or --keyboard=aoa, depending on OTG mode\)]'
46 '--keep-active[Keep the screen on by simulating user activity]'
47 '--keyboard=[Set the keyboard input mode]:mode:(disabled sdk uhid aoa)'
48 '--kill-adb-on-close[Kill adb when scrcpy terminates]'
49 '--legacy-paste[Inject computer clipboard text as a sequence of key events on Ctrl+v]'
50 '--list-apps[List Android apps installed on the device]'
51 '--list-camera-sizes[List the valid camera capture sizes]'
52 '--list-cameras[List cameras available on the device]'
53 '--list-displays[List displays available on the device]'
54 '--list-encoders[List video and audio encoders available on the device]'
55 {-m,--max-size=}'[Limit both the width and height of the video to value]'
56 '-M[Use UHID/AOA mouse \(same as --mouse=uhid or --mouse=aoa, depending on OTG mode\)]'
57 '--max-fps=[Limit the frame rate of screen capture]'
58 '--min-size-alignment=[Minimum video size alignment (1, 2, 4, 8 or 16)]'
59 '--mouse=[Set the mouse input mode]:mode:(disabled sdk uhid aoa)'
60 '--mouse-bind=[Configure bindings of secondary clicks]'
61 {-n,--no-control}'[Disable device control \(mirror the device in read only\)]'
62 {-N,--no-playback}'[Disable video and audio playback]'
63 '--new-display=[Create a new display]'
64 '--no-audio[Disable audio forwarding]'
65 '--no-audio-playback[Disable audio playback]'
66 '--no-cleanup[Disable device cleanup actions on exit]'
67 '--no-clipboard-autosync[Disable automatic clipboard synchronization]'
68 '--no-downsize-on-error[Disable lowering definition on MediaCodec error]'
69 '--no-key-repeat[Do not forward repeated key events when a key is held down]'
70 '--no-mipmaps[Disable the generation of mipmaps]'
71 '--no-mouse-hover[Do not forward mouse hover events]'
72 '--no-power-on[Do not power on the device on start]'
73 '--no-terminal-title[Disable terminal title updates]'
74 '--no-vd-destroy-content[Disable virtual display "destroy content on removal" flag]'
75 '--no-vd-system-decorations[Disable virtual display system decorations flag]'
76 '--no-video[Disable video forwarding]'
77 '--no-video-playback[Disable video playback]'
78 '--no-window[Disable scrcpy window]'
79 '--no-window-aspect-ratio-lock[Disable window aspect ratio lock]'
80 '--orientation=[Set the video orientation]:orientation values:(0 90 180 270 flip0 flip90 flip180 flip270)'
81 '--otg[Run in OTG mode \(simulating physical keyboard and mouse\)]'
82 {-p,--port=}'[\[port\[\:port\]\] Set the TCP port \(range\) used by the client to listen]'
83 '--pause-on-exit=[Make scrcpy pause before exiting]:mode:(true false if-error)'
84 '--power-off-on-close[Turn the device screen off when closing scrcpy]'
85 '--prefer-text[Inject alpha characters and space as text events instead of key events]'
86 '--print-fps[Start FPS counter, to print frame logs to the console]'
87 '--push-target=[Set the target directory for pushing files to the device by drag and drop]'
88 {-r,--record=}'[Record screen to file]:record file:_files'
89 '--raw-key-events[Inject key events for all input keys, and ignore text events]'
90 '--record-format=[Force recording format]:format:(mp4 mkv m4a mka opus aac flac wav)'
91 '--record-orientation=[Set the record orientation]:orientation values:(0 90 180 270)'
92 '--render-driver=[Request SDL to use the given render driver]:driver name:(direct3d opengl opengles2 opengles metal software)'
93 '--render-fit=[Set the render-fit mode]:mode:(letterbox stretched unscaled)'
94 '--require-audio=[Make scrcpy fail if audio is enabled but does not work]'
95 {-s,--serial=}'[The device serial number \(mandatory for multiple devices only\)]:serial:($("${ADB-adb}" devices | awk '\''$2 == "device" {print $1}'\''))'
96 {-S,--turn-screen-off}'[Turn the device screen off immediately]'
97 '--screen-off-timeout=[Set the screen off timeout in seconds]'
98 '--shortcut-mod=[\[key1,key2+key3,...\] Specify the modifiers to use for scrcpy shortcuts]:shortcut mod:(lctrl rctrl lalt ralt lsuper rsuper)'
99 '--start-app=[Start an Android app]'
100 {-t,--show-touches}'[Show physical touches]'
101 '--tcpip[\(optional \[ip\:port\]\) Configure and connect the device over TCP/IP]'
102 '--time-limit=[Set the maximum mirroring time, in seconds]'
103 '--tunnel-host=[Set the IP address of the adb tunnel to reach the scrcpy server]'
104 '--tunnel-port=[Set the TCP port of the adb tunnel to reach the scrcpy server]'
105 '--v4l2-buffer=[Add a buffering delay \(in milliseconds\) before pushing frames]'
106 '--v4l2-sink=[\[\/dev\/videoN\] Output to v4l2loopback device]'
107 {-v,--version}'[Print the version of scrcpy]'
108 {-V,--verbosity=}'[Set the log level]:verbosity:(verbose debug info warn error)'
109 '--video-buffer=[Add a buffering delay \(in milliseconds\) before displaying video frames]'
110 '--video-codec=[Select the video codec]:codec:(h264 h265 av1 vp8 vp9)'
111 '--video-codec-options=[Set a list of comma-separated key\:type=value options for the device video encoder]'
112 '--video-encoder=[Use a specific MediaCodec video encoder]'
113 '--video-source=[Select the video source]:source:(display camera)'
114 {-w,--stay-awake}'[Keep the device on while scrcpy is running, when the device is plugged in]'
115 '--window-borderless[Disable window decorations \(display borderless window\)]'
116 '--window-title=[Set a custom window title]'
117 '--window-x=[Set the initial window horizontal position]'
118 '--window-y=[Set the initial window vertical position]'
119 '--window-width=[Set the initial window width]'
120 '--window-height=[Set the initial window height]'
121 {-x,--flex-display}'[Continuously resize the virtual display to match the window]'
122 )
123
124 _arguments -s $arguments