Skip to content

Share mouse/keyboard/clipboard between PC and Android

License

Notifications You must be signed in to change notification settings

yume-chan/leap-scrcpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leap-scrcpy

A Deskflow client for Android.

The name is leap-scrcpy because originally it uses Input Leap and Scrcpy.

Features

It's still in early development stage:

  • Mouse movement
  • Mouse click
  • Mouse scroll wheel
  • Two-way clipboard sync
  • Keyboard
  • File Drag and Drop

Prerequisites

ADB

Download and run adb: https://developer.android.com/tools/releases/platform-tools#downloads

Enable USB debugging or Wireless debugging on your Android device.

Deskflow

  1. Download and install Deskflow
  2. Set your PC as server
  3. In Edit -> Preferences, turn off Require client certificates
  4. Add a screen named "Android" and place it as you want (https://github.com/input-leap/input-leap#usage)

Barrier, Input Leap and Synergy 1 should also be compatible, but Synergy 3 is not.

Android Studio

Android Studio is required to build the server, before a binary release is ready.

Build

There is no binary release yet, so you need to run from source

Build server

cd server
./gradlew assembleDebug

Don't use release build because the path is hardcoded.

Build client

  1. Install Node.js and pnpm (npm i -g pnpm)
  2. Clone this repository
  3. Run pnpm install
  4. Run pnpm build

Usage

node esm/index.js [server-address] [name]

Server address is like host:port. Defaults to localhost:24800 which is the default port of Input Leap running on current machine.

Name must be same as the screen name you added in Input Leap. Defaults to Android.

Now when you move the mouse to the configured edge, it will teleport to the Android device.