From 654f54c8fbc5d27a1609c9880e9778b55362b247 Mon Sep 17 00:00:00 2001 From: zawnk Date: Thu, 28 May 2026 22:16:39 +0200 Subject: [PATCH] add copy on message click --- ntfy-notifications/Panel.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ntfy-notifications/Panel.qml b/ntfy-notifications/Panel.qml index 957eefcaf..21b5a77cc 100644 --- a/ntfy-notifications/Panel.qml +++ b/ntfy-notifications/Panel.qml @@ -4,6 +4,7 @@ import QtQuick.Layouts import qs.Commons import qs.Services.UI import qs.Widgets +import Quickshell Item { id: root @@ -388,6 +389,13 @@ Item { wrapMode: Text.Wrap Layout.fillWidth: true opacity: messageItem.itemOpacity + + TapHandler { + onTapped: { + Quickshell.execDetached(["wl-copy", modelData.message.trim()]) + pluginApi.withCurrentScreen(s => pluginApi.closePanel(s)) + } + } } // Tags (if present)