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.
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".
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
For more shortcuts/commands, check Scrcpy repository and ADB commands.
- Scrcpy
- Taskbar Launcher
- Niagara Launcher
- [Null Keyboard - Only available on Telegram Group]
- Gboard