1
0
Fork 0

wlogout: add example

This commit is contained in:
outfoxxed 2024-03-08 04:30:51 -08:00
parent 56dc79816b
commit bc279df183
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
11 changed files with 182 additions and 0 deletions

21
wlogout/WlButton.qml Normal file
View file

@ -0,0 +1,21 @@
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();
}
}