Files
quickshell/modules/wlogout/LogoutButton.qml
T
2026-05-31 14:18:35 +02:00

23 lines
447 B
QML

import QtQuick
import Quickshell.Io
QtObject {
required property string command
required property string text
required property string icon
required property string icon_text
property var keybind: null
id: button
readonly property var process: Process {
command: ["sh", "-c", button.command]
}
function exec() {
process.startDetached();
console.log("Picked Logout Option, closing WLogout");
wlogoutLoader.active = false;
}
}