Skip to content

swapsCAPS/sshnip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

sshnip

After switching to an Android phone, I was missing the cross device copy paste magic 🪄 that my iPhone had. Works a treat for MFA codes, so I mostly needed it one way, i.e. phone to laptop. Whenever I copied an MFA code or something else, I opened the app manually, yes, this is a bodge.

Full disclaimer. After what seemed like a bricked phone, an incorrect diagnosis of a Samsung service center and a following unnecessary repair, switched back to iPhone.

Client

Simple Android app which starts up the first time to show a form to enter the API URL and API key.
The next time it starts up it simply grabs the content from the clipboard and if it's text, sends it over to the server and then closes. Initially I wanted to use a Service, but Android apps can only grab clipboard content if they are in the foreground, so Activity it was ¯\_(ツ)_/¯

Server

Simple Rocket server with a GET and POST endpoint for fetching and storing clipboard contents. Contents are stored in memory and cleared after GET.

Shortcut

A Shortcut that would run a shell script to curl the clipboard contents and pipe to pbcopy storing the remote clipboard into the laptops clipboard.

image

The fact that this is even possible on something made by Apple is so funny to me. Kudos to the engineers who built Shortcuts.

About

Very simple Android app that takes the contents of the clipboard and sends it to a server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published