summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/Workspace.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/components/workspaces/Workspace.qml')
-rw-r--r--modules/bar/components/workspaces/Workspace.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml
index 3c8238b..f6e767e 100644
--- a/modules/bar/components/workspaces/Workspace.qml
+++ b/modules/bar/components/workspaces/Workspace.qml
@@ -87,7 +87,11 @@ ColumnLayout {
Repeater {
model: ScriptModel {
- values: Hypr.toplevels.values.filter(c => c.workspace?.id === root.ws)
+ values: {
+ const windows = Hypr.toplevels.values.filter(c => c.workspace?.id === root.ws);
+ const maxIcons = Config.bar.workspaces.maxWindowIcons;
+ return maxIcons > 0 ? windows.slice(0, maxIcons) : windows;
+ }
}
MaterialIcon {