22 lines
359 B
QML
22 lines
359 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]
|
||
|
manageLifetime: false
|
||
|
}
|
||
|
|
||
|
function exec() {
|
||
|
process.running = true;
|
||
|
Qt.quit();
|
||
|
}
|
||
|
}
|