Description:
I've been using Copyq quite a while. Clipboard content synchronizes across different machine over Nextcloud shared folder. It works, but it's slow (~5-10 seconds) and there are a lot of produced files. And yes, it's not very secure to keep in sync everything.
This is why I decided to make changes:
- Only specific Copyq tabs will be synchronized over Nextcloud shared folder (like SQL, shell, code snippets etc.). Daily basis stuff on every device.
- To be fast as possible (without annoying delay) and send only chosen items of main Copyq history (&clipboard) I decided to integrate KDE Connect (started to use it long before Copyq) into Copyq and create dedicated buttons for every device I want to send data.
As a result I have:
- Power of Copyq clipboard manager.
- Instant speed of KDE Connect.
- More secure systems.
Overview:
Button code snippet:
copyq:
items = selecteditems()
if (items.length > 0) {
text = ''
for (i in items)
text += read(items[i]) + "\n\n";
execute('/bin/bash', '-c', 'kdeconnect-cli -n devbox --share-text "$(cat -)"', null, text)
}