1
0
Fork 0
quickshell-examples/wlogout/WlButton.qml

22 lines
359 B
QML
Raw Normal View History

2024-03-08 12:30:51 +00:00
import QtQuick
import Quickshell.Io
QtObject {
required property string command
required property string text
required property string icon
property var keybind: null
id: button
readonly property var process: Process {
command: ["sh", "-c", button.command]
manageLifetime: false
}
function exec() {
process.running = true;
Qt.quit();
}
}