💥 ags(bar/workspaces): hide special workspaces from list

This commit is contained in:
retrozinndev
2025-04-10 16:35:09 -03:00
parent 2a7928e6bf
commit e69589a14a
+1 -1
View File
@@ -14,7 +14,7 @@ export function Workspaces(): Gtk.Widget {
child: new Widget.Box({
className: "workspaces",
children: bind(hyprland, "workspaces").as((workspaces) => {
const sortedWorkspaces = workspaces.sort(
const sortedWorkspaces = workspaces.filter(ws => ws.id > 0).sort(
(a: AstalHyprland.Workspace, b: AstalHyprland.Workspace) => a.get_id() - b.get_id());
return sortedWorkspaces.map((workspace: AstalHyprland.Workspace) =>