From 775410393e2b27214f3b9711ee177aff06e03d84 Mon Sep 17 00:00:00 2001 From: anders130 <93037023+anders130@users.noreply.github.com> Date: Wed, 13 Aug 2025 06:53:40 +0200 Subject: bar: per-monitor workspaces option (#394) NOTE: option is true by default, which is a breaking change * feat(bar): add per-monitor workspace state * fix(bar): correct active workspace indicator * feat(bar): make per-monitor workspaces toggleable * fixes * more fixes * perMonitorWorkspaces default true + add to readme --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> --- modules/bar/components/workspaces/ActiveIndicator.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/bar/components/workspaces/ActiveIndicator.qml') diff --git a/modules/bar/components/workspaces/ActiveIndicator.qml b/modules/bar/components/workspaces/ActiveIndicator.qml index b44ba87..b18cac2 100644 --- a/modules/bar/components/workspaces/ActiveIndicator.qml +++ b/modules/bar/components/workspaces/ActiveIndicator.qml @@ -7,13 +7,14 @@ import QtQuick StyledRect { id: root + required property int activeWsId required property list workspaces required property Item mask required property real maskWidth required property real maskHeight required property int groupOffset - readonly property int currentWsIdx: Hyprland.activeWsId - 1 - groupOffset + readonly property int currentWsIdx: activeWsId - 1 - groupOffset property real leading: getWsY(currentWsIdx) property real trailing: getWsY(currentWsIdx) property real currentSize: workspaces[currentWsIdx]?.size ?? 0 -- cgit v1.2.3-freya