Date Tags misc

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:

  1. Only specific Copyq tabs will be synchronized over Nextcloud shared folder (like SQL, shell, code snippets etc.). Daily basis stuff on every device.
  2. 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:

  1. Power of Copyq clipboard manager.
  2. Instant speed of KDE Connect.
  3. More secure systems.

Overview:

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)
}