cloud-clipboard
I need a url on my mobile. Don't want to type it. Don't want to message myself.
Cloud Clipboard shares the data on clipboard across your devices. So it allows to copy on one device and paste on another.
Currently supported platforms: Linux, Windows, Android
Setup
- Download or clone this repo and change your directory to it. You only need
cloud.pyon desktop. - This scipt depends on
requestsandpyperclippython package, the later one also usesxselsystem package. So install them by running
pip install requests pyperclip apt-get install xsel
- Register yourself by running
python cloudcb.py register <username> <password>
- Replace
<username>with your username and<password>with your password. - Install this apk on your mobile.
Adding keyboard shortcuts
- Run the script with keyboard shortcuts analogous to
Ctrl + CandCtrl + V
For Linux
- Add a keyboard shortcut
Alt + Cto run the below command
gnome-terminal --command "python3 /home/nks/Projects/cloud-clipboard/cloudcb.py copy <username> <password>"- Add another keyboard shortcut
Alt + Pto run the below command
gnome-terminal --command "python3 /home/nks/Projects/cloud-clipboard/cloudcb.py paste <username> <password>"For Windows
- Right click and select
New -> Shortcut - Add the following line as path location and click OK
C:\Windows\System32\cmd.exe /c python C:\Users\nik\Downloads\cloudcb.py copy <username> <password>
- Replace the file path accordingly.
- Right click on shortcut icon and go to
properties. - Type the suitable keyboard shortcut and click Apply.
Instructions to use
- Copy the text.
- Execute this command to copy to cloud-clipboard if you are on desktop or just press
Alt + Cif you have added the shortcut
python cloudcb.py copy <username> <password>
- Open the app on your mobile to get that text on mobile's clipboard.
- Execute this command to update your desktop's clipboard to the text copied on other devices or just press
Alt + P
python cloudcb.py paste <username> <password>