From d2747e2ca1e211a32e91e44010f40a00e0ac97e4 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Sat, 30 May 2026 15:35:27 +0200 Subject: feat(quickshell): add popup controls and privacy indicators --- modules/system/quickshell/Workspaces.qml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'modules/system/quickshell/Workspaces.qml') diff --git a/modules/system/quickshell/Workspaces.qml b/modules/system/quickshell/Workspaces.qml index b63826d..44c0743 100644 --- a/modules/system/quickshell/Workspaces.qml +++ b/modules/system/quickshell/Workspaces.qml @@ -8,17 +8,19 @@ Item { implicitWidth: row.implicitWidth implicitHeight: 32 - ListModel { id: workspaceModel } + ListModel { + id: workspaceModel + } function updateWorkspaces(json) { try { - const ws = JSON.parse(json) - workspaceModel.clear() + const ws = JSON.parse(json); + workspaceModel.clear(); ws.forEach(w => workspaceModel.append({ - wsNum: w.num, - wsName: w.name, - wsFocused: w.focused - })) + wsNum: w.num, + wsName: w.name, + wsFocused: w.focused + })); } catch (_) {} } @@ -29,7 +31,8 @@ Item { stdout: SplitParser { onRead: _ => { - if (!refresher.running) refresher.running = true + if (!refresher.running) + refresher.running = true; } } } @@ -46,8 +49,8 @@ Item { onRunningChanged: { if (!running && buf !== "") { - root.updateWorkspaces(buf) - buf = "" + root.updateWorkspaces(buf); + buf = ""; } } @@ -89,8 +92,8 @@ Item { MouseArea { anchors.fill: parent onClicked: { - switcher.running = false - switcher.running = true + switcher.running = false; + switcher.running = true; } } } -- cgit v1.3.1