How to use scrcpy in linux and windows

scrcpy is a free and open-source screen mirroring software that allows control of an Android device from Windows, Linux and Mac. you can record screen

How to use scrcpy in linux | windows with flags and Examples

how to use scrcpy in linux and windows
scrcpy


Today you will learn, how you can download and install and use an application called "scrcpy" on your linux and Windows operating system.

scrcpy is a free and open-source application that allows control of Android devices from Windows, Mac OS or Linux operating systems.

You can connect your Android device via USB (or) WIFI Hotspot.

The features of this application are Recording, Screen Mirroring, Copy paste and more...

First of all, let's see the REQUIREMENTS,

  1. The Android device requires Android 5.0 (or) Greater.
  2. You must enable USB debugging on your android device.

Install scrcpy

In Linux

To install scrcpy on your Debian based linux use apt package manager,
 
$sudo apt install scrcpy

In Windows

  • Download the file from the official site Click Here
  • Extract the "ZIP" file and move to the "C" drive.

download scrcpy and extract in windows
scrcpy folder

  • Go to your "scrcpy" Folder.
  • Click on the address bar and copy the "path".

how to use scrcpy in windows and linux
Copy path

  • Next, You have to add Environment variable.
  • Click "start" and search for "Environment Variables".
  • Click the "Advanced" tab.
  • Click "Environment Variables".
  • Under "System Variables" click "path".
  • Then Click New.
  • Paste the path.
  • Click OK
how to use scrcpy in linux and windows
set environment variable


Check scrcpy is Installed

To check whether scrcpy is installed in your system, Just type.

$scrcpy --version

Screen Mirroring via USB

how to use scrcpy in linux and windows for screen mirroring using usb
screen mirroring via USB


  • Before using "scrcpy" enable USB debugging in your android device.
  • Then, Connect your android device to pc using a USB cable.
  • Now, open the terminal.
 
$scrcpy

Screen Mirroring via WIFI Hotspot

how to use scrcpy in linux and windows for screen mirroring using wifi or wireless
screen mirroring via wifi

  • Plugin your Android device in your Computer using USB.
  • Then type,
$adb tcpip your_ip_address:5555
  • To find your IP address.
  • Connect your computer to the mobile hotspot.
  • Then, Go to wifi settings.
  • In there you find your IP address (eg: 192.168.44.2)

After finding your IP address, Run the above command.

Unplug your USB cable. Type the below command on your terminal.

$adb connect your_ip_address
  • A popup will appear on your android device. Allow access.
  • Check your terminal if the device is connected.
how to use scrcpy in linux and windows to connect your android to computer
connect your android to computer
  • Type "scrcpy" in your terminal.
$scrcpy

Now your Android device screen is mirrored to your computer wirelessly.

Recording Your Screen

 
You can record your screen by using "scrcpy". Just follow the command,
$scrcpy -r fileName.mp4
The screen recorder will start recording the screen and automatically save it to your home folder.
 
when you close scrcpy.
 
You can also use other extensions like .mkv, etc...

Record your screen without mirroring

You can also record your android screen without mirroring by using the "-N" flag with the above command. Just type,
$scrcpy -Nr fileName.mp4

To Change Title

 
how to use scrcpy in linux and windows to change title on scrcpy window
change your window title

If you want to change the Title in your scrcpy title bar, you can write the below command.
$scrcpy --window-title 'New Title'

Borderless Window

how to use scrcpy in linux and windows to change window border
Borderless window

 
You can remove all borders in the window.
$scrcpy window-borderless

Always on Top

To keep your window always on top.
$scrcpy --always-on-top

Full Screen

To enable Full-Screen mode. Type this command,
$scrcpy -f

Show Touches

When you touch your android screen a circle shows your touch spot.

To enable, type the command in your terminal,
$scrcpy -t

Cut, Copy and Paste

You can easily Cut, Copy and Paste Your Text, Links, etc... from your android device to your computer (or) vice versa.

As we all know that how to use Cut, Copy and Paste in computer.

When you Cut, Copy and paste from "scrcpy" window use Alt Key instead of Ctrl Key.
 
I'll demonstrate the copy process from computer to android,

how to use scrcpy in linux and windows to cut copy and paste
Example
  • Copy text from Computer.
  • Go to the "scrcpy" window.
  • Open any text editor or where you want to paste your text.
  • Press Alt + V
  • You're done.
 
how to use scrcpy in linux and windows to cut copy paste text
copy paste using scrcpy

Install Apk

how to use scrcpy in linux and windows to install apps
Install apps using scrcpy

 
You can install apps using "scrcpy". Just drag and drop your APK file from your computer to "scrcpy" window.

Share Files from Computer

how to use scrcpy in linux and windows to share files
Share files

 
Just Drag and drop the files that you want to share from your computer.

Note:
  • Keep in mind you cannot share "apk" files.

You can change directories to share by using the below command,

$scrcpy --push-target=/sdcard/NewFolder

Keyboard and Mouse Control

Shortcuts
Action
Full-Screen Mode
Alt + f
Go to Home Screen
Alt + h (or) Middle Click on Mouse
Click on Back
Alt + b (or) Right Click
App Switch
Alt + s
Open Unlock Screen Menu
Alt + m
Volume Up
Alt + Up Arrow
Volume Down
Alt + Down Arrow
Power Button
Alt + p
Turn Device screen OFF (Keep Mirroring)
Alt + o
Turn Device Screen ON
Alt + Shift + o
Expand Notification Panel
Alt + n
Collapse Notification Panel
Alt + Shift + n

Conclusion

That's all about "scrcpy" You can do more in scrcpy. I have shown you the most frequently used and Normal Day to Day operations. You can learn more about "scrcpy" in their official Documentation.

HAVE A NICE DAY💓

Related,

Name

Apps,3,Games,1,Linux,38,Linux Commands,37,Terminal Apps,2,Termux,17,Userland,3,Windows,1,
ltr
item
Pro Tech guides: How to use scrcpy in linux and windows
How to use scrcpy in linux and windows
scrcpy is a free and open-source screen mirroring software that allows control of an Android device from Windows, Linux and Mac. you can record screen
https://blogger.googleusercontent.com/img/a/AVvXsEhaRTT6sedvjh11-nlijyoihzEHG0Dqav9lNF-VmCEJtrSLCuC0dzFiUnBJZt_V3kI2OAZBn_LNBW1YAWugjDRwgpzAxOzWrSolr4bHVip-9coDuoC5RFRNkh2-nl9PUm8Ih36LgENROKFpB2p-y1sVESKxtTtBbAbKz95mb4TXN2NscuLYuR3Sgkg9=s16000-rw
https://blogger.googleusercontent.com/img/a/AVvXsEhaRTT6sedvjh11-nlijyoihzEHG0Dqav9lNF-VmCEJtrSLCuC0dzFiUnBJZt_V3kI2OAZBn_LNBW1YAWugjDRwgpzAxOzWrSolr4bHVip-9coDuoC5RFRNkh2-nl9PUm8Ih36LgENROKFpB2p-y1sVESKxtTtBbAbKz95mb4TXN2NscuLYuR3Sgkg9=s72-c-rw
Pro Tech guides
http://www.protechguidez.com/2022/01/how-to-use-scrcpy-in-linux-and-windows.html
http://www.protechguidez.com/
http://www.protechguidez.com/
http://www.protechguidez.com/2022/01/how-to-use-scrcpy-in-linux-and-windows.html
true
7053638852026728047
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content