Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
890 stars 64 forks source link

Workspace count with multi-monitor #498

Open xyzbtw opened 1 day ago

xyzbtw commented 1 day ago

Even when you have monitor specific enabled, hyprpanel shows all workspaces that aren't linked to a specific monitor.

Feature request: for it to only show a workspace depending on the monitor that it's on.

Issue example workspace 1 is linked to monitor 1 workspaces 2 and 3 are linked to monitor 2

Workspaces 4 and 5 are on monitor 2.

Hyprpanel on monitor 1 shows workspaces 4 and 5 that are on monitor 2.

xyzbtw commented 1 day ago

made a "fix" in occupied.ts for workspaces .filter((i) => { const workspace = hyprland.workspaces.find((ws) => ws.id === i); return workspace && (!monitorSpecific || (curMonitor && workspace.monitorID === curMonitor.id)); })

image

rubiin commented 1 day ago

you can create a PR if you like