diff --git a/config/ags/widget/Bar.tsx b/config/ags/widget/Bar.tsx index 50f0f3c9..e6f30886 100644 --- a/config/ags/widget/Bar.tsx +++ b/config/ags/widget/Bar.tsx @@ -79,21 +79,17 @@ function Media() { } function Workspaces() { - const hypr = Hyprland.get_default() + const hypr = Hyprland.get_default() - return - {bind(hypr, "workspaces").as(wss => wss - .sort((a, b) => a.id - b.id) - .map(ws => ( - - )) - )} - + const workspaceButtons: number[] = (Array.from({ length: 10 }, (_, id) => id + 1)) + + return + {workspaceButtons.map (workspace => + + )} + } function FocusedClient() { @@ -132,7 +128,7 @@ export default function Bar(monitor: Gdk.Monitor) { anchor={anchor}> - +