1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

docs: update PLUGIN docs (#443)

This commit is contained in:
Bruno Cesar Rocha
2025-10-15 13:14:49 +01:00
committed by GitHub
parent 5f810fe741
commit f4a4151632
10 changed files with 400 additions and 28 deletions

View File

@@ -1,4 +1,5 @@
import QtQuick
import Quickshell
import qs.Services
Item {
@@ -111,13 +112,8 @@ Item {
}
function copyToClipboard(text) {
if (typeof globalThis !== "undefined" && globalThis.clipboard) {
globalThis.clipboard.setText(text)
showToast("Copied to clipboard: " + text)
} else {
console.log("LauncherExample: Would copy to clipboard:", text)
showToast("Copy feature not available")
}
Quickshell.execDetached(["sh", "-c", "echo -n '" + text + "' | wl-copy"])
showToast("Copied to clipboard: " + text)
}
function runScript(command) {

View File

@@ -6,7 +6,7 @@
"author": "DMS Team",
"icon": "extension",
"type": "launcher",
"capabilities": ["launcher"],
"capabilities": ["clipboard", "command-execution"],
"component": "./LauncherExampleLauncher.qml",
"settings": "./LauncherExampleSettings.qml",
"trigger": "#",
@@ -14,4 +14,4 @@
"settings_read",
"settings_write"
]
}
}