copypastor
Copy & paste your stuff between devices, simple and fast way. Safely share your clipboard.
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 connectioncopypastor --client
- client mode only, connecting to specified host ($HOME/.config/copypastor/config.py)copypastor --debug
- just like default but with more CLI infocopypastor --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
- 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.
OR (even better, extremely ergonomic):
- Create system/app key shortcut bind so you can paste it fast anywhere, for ex. iCanHazShortcut
TODO:
- DotEnv instead standard config.py
- Threads for app modes (so you could easy change it while running)
- Pathlib for in-place paths instead current import construction
- 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