KDE Connect Android Send clipboard via intent( from tasker or macrodroid)

I’m using the KDE Connect Android app to connect my phone to my Ubuntu laptop, where KDE Connect is set up. Often, I want to send the clipboard from my phone to my laptop. To do this, I can either open the app and click the “Send Clipboard” button, which feels a bit tedious, or I can enable the persistent notification in my phone’s notification tray, allowing me to quickly send the clipboard with a tap. However, the downside of the persistent notification is that it takes up space in my notifications, even when my laptop isn’t connected to my phone.

To address this, I’m wondering if it’s possible to send the clipboard from my phone to my laptop using some kind of intent. This would allow me to create a shortcut in MacroDroid to trigger this action. I understand that security concerns might prevent such an intent from existing, but I wanted to check if anyone has any ideas or solutions for this. Does this functionality exist or is there a workaround I can use?

To do this, I can either open the app and click the “Send Clipboard” button, which feels a bit tedious, or I can enable the persistent notification in my phone’s notification tray, allowing me to quickly send the clipboard with a tap

I have clipboard sync enabled so regardless of whether I copy to clipboard on either phone or PC its can be pasted on the other device

To address this, I’m wondering if it’s possible to send the clipboard from my phone to my laptop using some kind of intent.

Not sure if this is using Intents but I just tried this:

  1. Put some text in my notes app
  2. Selected the text
  3. Chose “Share”
  4. Selected KDE Connect
  5. Selected my connected PC
  6. Got a notification that my phone has shared clipboard
  7. Confirmed text can be seen in Plasma’s clipboard history.

Oh, I actually didn’t know about this feature. I tried it now, and it pretty much solves my problem, so no need for Intents for this usecase. Thanks mate!

However, Since This thread is about Intents, I will leave it open in case someone finds a way to send Intents to KDE Connect or discovers a better programmatic way to do this. I suppose it could come in handy in various other situations.

Thanks again!

1 Like