wlogout: add example
This commit is contained in:
parent
56dc79816b
commit
bc279df183
11 changed files with 182 additions and 0 deletions
21
wlogout/WlButton.qml
Normal file
21
wlogout/WlButton.qml
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue