summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2026-01-16 11:10:47 -0500
committerSam Nystrom <sam@samnystrom.dev>2026-01-16 11:10:47 -0500
commit3be0bc327487bad51e9e38ec2caa6af2f37ee04b (patch)
treed4ead6b2ea8bcbf9d375257884765a4943a217a2 /.config
parent3d300067f6e179e03d1983159b81e1c2cfe2fa8c (diff)
make qs work with split-monitor-workspacesHEADmain
Diffstat (limited to '.config')
-rw-r--r--.config/quickshell/Modules/BarWorkspaces.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.config/quickshell/Modules/BarWorkspaces.qml b/.config/quickshell/Modules/BarWorkspaces.qml
index fa95262..36ebf77 100644
--- a/.config/quickshell/Modules/BarWorkspaces.qml
+++ b/.config/quickshell/Modules/BarWorkspaces.qml
@@ -22,13 +22,15 @@ Rectangle {
delegate: Rectangle {
property HyprlandWorkspace ws: {
- Hyprland.workspaces.values.find(ws => ws.id === index + 1) || null
+ Hyprland.workspaces.values.find(ws => (
+ ws.monitor && ws.monitor.name === root.screen.name && ws.id % 10 === index + 1
+ )) || null
}
property bool focused: {
- ws && ws.monitor && ws.monitor.name === root.screen.name && ws.focused
+ ws && ws.focused
}
property bool occupied: {
- ws && ws.monitor && ws.monitor.name === root.screen.name && ws.toplevels.values.length > 0
+ ws && ws.toplevels.values.length > 0
}
width: 20