fixes waybar, adds quickshell
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// Exec.qml - fire-and-forget process launcher
|
||||
// Usage from any file: Exec.run(["kitty", "-e", "btop"])
|
||||
pragma Singleton
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
function run(cmd) {
|
||||
const proc = procPool.createObject(root, { command: cmd });
|
||||
proc.running = true;
|
||||
}
|
||||
|
||||
Component {
|
||||
id: procPool
|
||||
Process {
|
||||
running: false
|
||||
onExited: destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user