aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/kdeconnect/KdeConnectRow.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-14 19:17:23 +0200
committerDanilo M. <danix@danix.xyz>2026-09-14 19:17:23 +0200
commitb46f37d689d4a59a4915d4c53f482429c9c305c3 (patch)
tree9ca8ecfa7c44c123eb9ff1129324e0e79a0391df /desktop/modules/kdeconnect/KdeConnectRow.qml
parent7e89c874e83ea49a4808e037457ab7b3f50d6d89 (diff)
downloadquickshell-b46f37d689d4a59a4915d4c53f482429c9c305c3.tar.gz
quickshell-b46f37d689d4a59a4915d4c53f482429c9c305c3.zip
feat(desktop): KDE Connect device actions
Ring, clipboard, mount and unpair, all shell-outs since there is no D-Bus module. Actions share one serialized Process and a failure notifies, for the case where the drawer has closed by the time the command returns. Mount runs --mount and then --get-mount-point in one shell, because --mount prints nothing and the path is a second call.
Diffstat (limited to 'desktop/modules/kdeconnect/KdeConnectRow.qml')
-rw-r--r--desktop/modules/kdeconnect/KdeConnectRow.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/desktop/modules/kdeconnect/KdeConnectRow.qml b/desktop/modules/kdeconnect/KdeConnectRow.qml
index 45daae9..70cc6ce 100644
--- a/desktop/modules/kdeconnect/KdeConnectRow.qml
+++ b/desktop/modules/kdeconnect/KdeConnectRow.qml
@@ -67,5 +67,35 @@ Rectangle {
color: Theme.subtext
elide: Text.ElideRight
}
+
+ Row {
+ width: parent.width
+ spacing: 6
+
+ Button {
+ visible: row.device.reachable
+ text: "Ring"
+ onClicked: row.mod.ring(row.device.id)
+ }
+
+ Button {
+ visible: row.device.reachable
+ text: "Clipboard"
+ onClicked: row.mod.clipboard(row.device.id)
+ }
+
+ Button {
+ visible: row.device.reachable
+ text: "Mount"
+ onClicked: row.mod.mount(row.device.id)
+ }
+
+ Button {
+ visible: row.device.paired
+ text: "Unpair"
+ danger: true
+ onClicked: row.mod.unpair(row.device.id)
+ }
+ }
}
}