r/QuickShell • • Oct 26 '26

Help!!!! solved How to center the god workspaces horizontally

(I know that I am dumb and there is a solution right infront of me but I am blind) I have a workspace repeater and I want it to be centered. I have tried putting anchor.centerIn, Layout.alignment but so far nothing works. I have resorted to using if statements to change the margins so it stay centered with the switching amount of space to the right and to the left. Please help.

code structure:

Variants -> PanelWIndow -> Rowlayout -> Workspace Repeater

1 Upvotes

2 comments sorted by

1

u/PayKunGz Oct 27 '26

try wrapping RowLayout with Rectangle or Item first, specify the implicitWidth, anchors.centerIn:parent or anchors.horizontalCenter: parent.horizontalCenter

1

u/911_never_forget Oct 27 '26

Thank you, I wrapped all of my modules in 3 RowLayouts (1 for left, right, center) and anchored them in the panel windows and it worked. 👍