fix: detect niri availability from event stream; fix workspaces visibility
This commit is contained in:
parent
e3cae59ac3
commit
1b5bdd3010
4 changed files with 7 additions and 8 deletions
|
|
@ -14,12 +14,10 @@ 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: M.NiriIpc.available
|
||||
running: true
|
||||
command: ["niri", "msg", "--json", "workspaces"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue