aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/Workspaces.qml
diff options
context:
space:
mode:
authorLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
committerLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
commitd2747e2ca1e211a32e91e44010f40a00e0ac97e4 (patch)
treefb229d6a18541c7a5f1944390b21edde028955f9 /modules/system/quickshell/Workspaces.qml
parent51b3cbd50b92d026549ce3ebff17ca9b3344f441 (diff)
feat(quickshell): add popup controls and privacy indicators
Diffstat (limited to 'modules/system/quickshell/Workspaces.qml')
-rw-r--r--modules/system/quickshell/Workspaces.qml27
1 files changed, 15 insertions, 12 deletions
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;
}
}
}