feat: auto-disable niri-dependent components when NIRI_SOCKET is absent

This commit is contained in:
Damocles 2026-04-15 21:08:44 +02:00
parent dd854a2f7f
commit 9cf6853742
4 changed files with 9 additions and 5 deletions

View file

@ -14,10 +14,12 @@ Row {
readonly property string _output: bar.screen?.name ?? ""
readonly property var _workspaces: _allWorkspaces.filter(w => w.output === root._output)
visible: M.NiriIpc.available
// Initial state
Process {
id: initProc
running: true
running: M.NiriIpc.available
command: ["niri", "msg", "--json", "workspaces"]
stdout: StdioCollector {
onStreamFinished: {