summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-09 11:55:23 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-09 11:55:23 +0800
commitca9fcf800485ac5dff633275d56f0b33c4670225 (patch)
treea354cfeca9c5602e46ab31b3b1983e23dd64fedb /services
parentb707a6ee3ebfb5b527af63f0eacfb63ec1a580cb (diff)
finished bar
Diffstat (limited to 'services')
-rw-r--r--services/Hyprland.qml19
1 files changed, 3 insertions, 16 deletions
diff --git a/services/Hyprland.qml b/services/Hyprland.qml
index 84db674..ea07b65 100644
--- a/services/Hyprland.qml
+++ b/services/Hyprland.qml
@@ -11,28 +11,15 @@ Singleton {
readonly property var toplevels: Hyprland.toplevels
readonly property var workspaces: Hyprland.workspaces
readonly property var monitors: Hyprland.monitors
+ property var ws: ObjectModel
// readonly property HyprlandToplevel activeToplevel: Hyprland.activeToplevel
readonly property HyprlandWorkspace focusedWorkspace: Hyprland.focusedWorkspace
readonly property HyprlandMonitor focusedMonitor: Hyprland.focusedMonitor
- readonly property int activeWs: focusedWorkspace?.id ?? 1
function dispatch(request: string): void {
Hyprland.dispatch(request);
}
- function getAllWorkspaces(): var {
- var allWorkspaces = {
- values: [],
- count: 0
- };
- for (let i = 1; i <= Bar.workspaces; i++) {
- if (workspaces[i] === undefined) {
- allWorkspaces.values[i] = HyprlandWorkspace;
- }
- }
- return allWorkspaces;
- }
-
Connections {
target: Hyprland
@@ -44,8 +31,8 @@ Singleton {
Hyprland.refreshMonitors();
else if (event.name.includes("workspace"))
Hyprland.refreshWorkspaces();
- // else
- // Hyprland.refreshToplevels();
+ // else
+ // Hyprland.refreshToplevels();
}
}
}