Syncs the clipboard between computers, physical or virtual.
There are three modes: client, server, and dual. Client attempts to connect to the server to send/receive clipboard data. Server runs to allow clients to connect and propagates the clipboard data to all connected clients. Dual runs both at the same time, and can be connected to by its own client, so you don't have to run multiple processes.
An attempt is made to listen to clipboard change notifications. If this fails, it falls back to polling. If you want a new feature, fork the repo and add it or open an issue. Feel free to send pull requests, or keep your changes to your own fork if you wish.
I don't actually know how to program haha.
- Linux
- Windows
- xclip or xsel (required by clipboard)
- none, everything should Just Werk™
Create a clipboardsync.toml file using the example as a base, and then run the program. Do this for the two machines you want to sync clipboards between.
The config file is searched for using awconf
- One server, many clients. Server, Client, and dual mode
- Make the Sync RPC function use streams
- Keep connection open and send data back and forth
- Client auto-attempts reconnection every X seconds when disconnected
- Possibly encrypt the clipboard to make this safe for use if anything is not on the local network. (Honestly this is easy but then you have to get or make a cert so maybe eventually)