diff options
Diffstat (limited to 'services')
| -rw-r--r-- | services/Hyprland.qml | 19 |
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(); } } } |
