Skip to main content

For clipboard copy/paste remote action ;-)

Project description

copypastor

Copy & paste your stuff between devices, simple and fast way. Safely share your clipboard.

img

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

tldr: go to Installing & HOW MAY I USE IT?

Prerequisites

You need at least Python3 - that's all. Rest is in requirements.txt (installed automatically).

Oh, one more thing: *nix systems only (including MacOS), I don't work with Windows so... maybe you could add it?

And one more - your devices have to be in the same network.

Installing

  • pip3 install copypastor (recommended)

  • clone code & pip3 install . (in app root directory)

  • clone code & python3 setup.py install (little deprecated)

Configuration

Default config after installation is your $HOME location, usually: /home/yourmom/.config/copypastor/config.py

This is standard python config, you can change there things like:

- SERVER_PORT
- SERVER_HOST
- REMOTE_PORT
- REMOTE_HOST
- AUTH_KEY (currently not ciphered)

and also key bindings:

- ACTIVATE_CLIENT -> KeyCode(char='c') -> to some other [key combination is allowed]
- ACTIVATE_SERVER -> KeyCode(char='s') -> to some other [key combination is allowed]

Deployment (CLI usage)

copypastor is cli-app-only, dead simple. After installing just try commands below.

One important thing to remember: you need to start it where your X's are (or EXPORT DISPLAY them)

  • copypastor - running default mode, you can choose between client/server mode by (default) keys 'C' or 'S'
  • copypastor --server - server mode only, listening on port and waiting for connection
  • copypastor --client - client mode only, connecting to specified host ($HOME/.config/copypastor/config.py)
  • copypastor --debug - just like default but with more CLI info
  • copypastor --help - not important at all ;)
  • copypastor --version - in case I would ever bump it up

HOW MAY I USE IT?

(how author is using it)

On 1st device (let's say a Ubuntu laptop) I'm starting in CLI:

copypastor --server to run server-mode

screenshot

  • Now copy some text on this Ubuntu to system clipboard (CTRL+C somewhere: "has logged off")

On the other one (let's say a Macbook) I'm starting in CLI:

copypastor --client to run client-mode, then paste from clipboard and... voilà.
I've just pasted this text from Ubuntu clipboard.

screenshot

[extra stuff]

OR (even better, extremely ergonomic):

  • Create system/app key shortcut bind so you can paste it fast anywhere, for ex. iCanHazShortcut

screenshot

TODO:

  1. DotEnv instead standard config.py
  2. Threads for app modes (so you could easy change it while running)
  3. Pathlib for in-place paths instead current import construction
  4. Securing secrets (connection token)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Dawid Deręgowski - currently the only one - Venomen

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

copypastor-1.0.3.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

copypastor-1.0.3-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page