From d1e5f484461e27133317c78b81347d05dc3a2760 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 24 Aug 2025 14:14:30 +1000 Subject: internal: rename Hyprland -> Hypr Prevent shadowing Fixes window info not changing on switching to an empty workspace --- modules/bar/components/workspaces/Workspaces.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/bar/components/workspaces/Workspaces.qml') diff --git a/modules/bar/components/workspaces/Workspaces.qml b/modules/bar/components/workspaces/Workspaces.qml index 7b92ffa..c9a90e8 100644 --- a/modules/bar/components/workspaces/Workspaces.qml +++ b/modules/bar/components/workspaces/Workspaces.qml @@ -13,10 +13,10 @@ StyledClippingRect { required property ShellScreen screen - readonly property bool onSpecial: (Config.bar.workspaces.perMonitorWorkspaces ? Hyprland.monitorFor(screen) : Hyprland.focusedMonitor)?.lastIpcObject.specialWorkspace.name !== "" - readonly property int activeWsId: Config.bar.workspaces.perMonitorWorkspaces ? (Hyprland.monitorFor(screen).activeWorkspace?.id ?? 1) : Hyprland.activeWsId + readonly property bool onSpecial: (Config.bar.workspaces.perMonitorWorkspaces ? Hypr.monitorFor(screen) : Hypr.focusedMonitor)?.lastIpcObject.specialWorkspace.name !== "" + readonly property int activeWsId: Config.bar.workspaces.perMonitorWorkspaces ? (Hypr.monitorFor(screen).activeWorkspace?.id ?? 1) : Hypr.activeWsId - readonly property var occupied: Hyprland.workspaces.values.reduce((acc, curr) => { + readonly property var occupied: Hypr.workspaces.values.reduce((acc, curr) => { acc[curr.id] = curr.lastIpcObject.windows > 0; return acc; }, {}) @@ -91,10 +91,10 @@ StyledClippingRect { anchors.fill: layout onClicked: event => { const ws = layout.childAt(event.x, event.y).index + root.groupOffset + 1; - if (Hyprland.activeWsId !== ws) - Hyprland.dispatch(`workspace ${ws}`); + if (Hypr.activeWsId !== ws) + Hypr.dispatch(`workspace ${ws}`); else - Hyprland.dispatch("togglespecialworkspace special"); + Hypr.dispatch("togglespecialworkspace special"); } } -- cgit v1.2.3-freya