1
0
Fork 0
quickshell-examples/wlogout/LogoutButton.qml
2025-05-14 02:55:38 -07:00

20 lines
336 B
QML

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]
}
function exec() {
process.startDetached();
Qt.quit();
}
}