import { bind } from "astal" import Hyprland from "gi://AstalHyprland" export default function Workspaces(props: { monitor: string, iconSide: "left" | "right" }) { const hyprland = Hyprland.get_default(); return {props.iconSide == "left" && } function Workspace(props: { workspace: Hyprland.Workspace }) { const hyprland = Hyprland.get_default(); return {bind(props.workspace.get_monitor(), "activeWorkspace").as(ws => { if (ws == props.workspace) { return }