summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/ActiveIndicator.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 12:52:01 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 12:52:01 +1000
commit4013fe84343b15cefdec9590b5a032d67b1a6b1a (patch)
tree63cecc6073bc1c418ee9be6f859bb375203ad4ce /modules/bar/components/workspaces/ActiveIndicator.qml
parentrefactor: move active workspace indicator to new file (diff)
downloadcaelestia-shell-4013fe84343b15cefdec9590b5a032d67b1a6b1a.tar.gz
caelestia-shell-4013fe84343b15cefdec9590b5a032d67b1a6b1a.tar.bz2
caelestia-shell-4013fe84343b15cefdec9590b5a032d67b1a6b1a.zip
feat: bar workspace groups
Diffstat (limited to 'modules/bar/components/workspaces/ActiveIndicator.qml')
-rw-r--r--modules/bar/components/workspaces/ActiveIndicator.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/bar/components/workspaces/ActiveIndicator.qml b/modules/bar/components/workspaces/ActiveIndicator.qml
index d5ae0b5..7feab35 100644
--- a/modules/bar/components/workspaces/ActiveIndicator.qml
+++ b/modules/bar/components/workspaces/ActiveIndicator.qml
@@ -12,8 +12,9 @@ Rectangle {
required property Item mask
required property real maskWidth
required property real maskHeight
+ required property int groupOffset
- property int currentIdx: (Hyprland.activeWorkspace?.id ?? 1) - 1
+ property int currentIdx: (Hyprland.activeWorkspace?.id ?? 1) - 1 - groupOffset
property int lastIdx: currentIdx
property real leading: workspaces[currentIdx][vertical ? "y" : "x"]
property real trailing: workspaces[lastIdx][vertical ? "y" : "x"]