목차

scrcpy

brew 로 설치

brew install scrcpy
# adb 는 따로 설치 필요
sudo apt install adb

Snap Debian/Ubuntu 설치

sudo snap install scrcpy-updated --edge

snap 으로 설치시 /snap/bin/scrcpy, /snap/bin/scrcpy.adb 가 생성됨.

Flatpak

Manjaro/Arch 설치

실행

현재 실행 방식

# 원하는 IME(세벌식용)로 변경. adb 혹은 scrcpy.adb
adb shell ime set "com.egloos.woongyee.sesak/.SesakKeyboardService"
 
# 실행
scrcpy --hid-keyboard --stay-awake --turn-screen-off
 
# IME 원상복구
adb shell ime set "com.lge.ime/.LgeImeImpl"

실행 옵션

단축키

OTG - on the go 모드

scrcpy --otg

물리 키보드 시뮬레이션 - 한글 입력 & Keyboard

scrcpy --hid-keyboard
scrcpy -K  # short version

특정 앱 화면 띄우기 - virtual display

# 앱 목록 출력
scrcpy --list-apps
 
# 앱 기본 실행(스마트폰 화면 비율인듯)
scrcpy --new-display --start-app=com.kakao.talk
 
# 화면 해상도 지정 및 DPI 지정
# DPI 숫자가 커질수록 글씨가 커짐
scrcpy --new-display=1920x1080/240 --start-app=com.samsung.android.messaging
scrcpy --new-display=/240 --start-app=com.samsung.android.messaging
 
# --no-vd-system-decorations : 안드로이드 홈/뒤로가기/작업보기 버튼들 숨기고 앱 자체만 나오게
scrcpy --new-display --no-vd-system-decorations --start-app=com.kakao.talk
 
# --no-vd-destroy-content : 창 닫을 때 앱을 종료하지 않게 - 기본값은 창을 닫으면 앱을 종료해버림
scrcpy --new-display --no-vd-system-decorations --no-vd-destroy-content --start-app=com.kakao.talk
 
# --display-ime-policy=local : 입력기 창도 PC 창에 함께 띄우기 - 기본은 스마트폰에 입력기 화면이 뜸
scrcpy --new-display --display-ime-policy=local --start-app=com.kakao.talk
# 나의 기본 옵션
 
scrcpy --new-display=1920x1080/240 \
   --no-vd-system-decorations \
   --no-vd-destroy-content \
   --display-ime-policy=local \
   --start-app=<APP>

자동실행

참조