Files
dotfiles/config/quickshell/Services/WriteClipboard.qml
2025-10-19 00:14:19 +02:00

21 lines
298 B
QML

import QtQuick
import Quickshell
import Quickshell.Io
pragma Singleton
Singleton {
id: root
function write(text) {
action.command = ["sh", "-c", `echo ${text} | wl-copy -n`];
action.startDetached();
}
Process {
id: action
running: false
}
}