Remove workaround for bug Hyprland#2154

https://github.com/hyprwm/Hyprland/issues/2154
This commit is contained in:
fdev31 2023-04-29 10:33:52 +02:00
parent 6eff4b1160
commit 1df3dfb1e8

View file

@ -20,15 +20,13 @@ class Extension(Plugin):
) )
workspaces = [w["id"] for w in await hyprctlJSON("workspaces") if w["id"] > 0] workspaces = [w["id"] for w in await hyprctlJSON("workspaces") if w["id"] > 0]
batch: list[str | list[str]] = [["animations:enabled false", "keyword"]] batch: list[str | list[str]] = []
for n in workspaces: for n in workspaces:
if n in busy_workspaces or n == workspace_id: if n in busy_workspaces or n == workspace_id:
continue continue
batch.append(f"moveworkspacetomonitor {n} {monitor_id}") batch.append(f"moveworkspacetomonitor {n} {monitor_id}")
batch.append(f"workspace {workspace_id}") batch.append(f"workspace {workspace_id}")
await hyprctl(batch) await hyprctl(batch)
await asyncio.sleep(0.05)
await hyprctl("animations:enabled true", base_command="keyword")
async def run_change_workspace(self, direction: str): async def run_change_workspace(self, direction: str):
increment = int(direction) increment = int(direction)