diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 12:52:01 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 12:52:01 +1000 |
| commit | 4013fe84343b15cefdec9590b5a032d67b1a6b1a (patch) | |
| tree | 63cecc6073bc1c418ee9be6f859bb375203ad4ce /modules/bar/components/workspaces/ActiveIndicator.qml | |
| parent | refactor: move active workspace indicator to new file (diff) | |
| download | caelestia-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.qml | 3 |
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"] |