scrcpy_script
scrcpy_script copied to clipboard
Batch script to simulate a Desktop environment on your phone using scrcpy and some android apps.
Scrcpy Batch Script:
The following script automates the scrcpy connection with your phone and simulates a desktop environment using Taskbar Launcher. It also automatically adjust the screen density and disables the Gboard keyboard with Null Keyboard. Then when you close the scrcpy window, the script changes the screen density, enables Gboard Keyboard and Niagara Launcher becomes the default launcher.
Instructions Tips:
First of all, you need to have USB Debugging enabled on your phone to get everything working.
In the batch script you must replace DEVICE_ID
with the ID or IP of your device.
In Taskbar Launcher, you must activate "Replace Home Screen".
Useful Notes:
You can change render driver between opengl and direct3d on --render-driver=direct3d
.
If you have lag issues, try to play with -m1360
and -b10M
.
WIRELESS SCRIPT: Screen Time Out value 60000 = 1 minute
.
You can play with your phone resolution and aspect ratio using adb shell wm size
.
Please check the keyboard you are using to avoid language problems
Font Scale Values:
- Small:
0.85
- Default:
1.0
- Large:
1.15
- Lagest:
1.30
If you're using Exagear, you may find helpful to add "--forward-all-clicks" to the Scrcpy line for better mouse compatibility.
Do you use another launcher? Check Alternative Launchers Commands
More Information:
For more shortcuts/commands, check Scrcpy repository and ADB commands.
This batch script need the below elements to work:
- Scrcpy
- Taskbar Launcher
- Niagara Launcher
- [Null Keyboard - Only available on Telegram Group]
- Gboard