mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-10 01:09:28 -05:00
toggle: fix specialws
This commit is contained in:
@@ -147,13 +147,5 @@ class Command:
|
|||||||
self.move_client(selector, self.args.workspace)
|
self.move_client(selector, self.args.workspace)
|
||||||
|
|
||||||
def specialws(self) -> None:
|
def specialws(self) -> None:
|
||||||
workspaces = hypr.message("workspaces")
|
special = next(m for m in hypr.message("monitors") if m["focused"])["specialWorkspace"]["name"]
|
||||||
on_special_ws = any(ws["name"] == "special:special" for ws in workspaces)
|
hypr.dispatch("togglespecialworkspace", special[8:] or "special")
|
||||||
toggle_ws = "special"
|
|
||||||
|
|
||||||
if not on_special_ws:
|
|
||||||
active_ws = hypr.message("activewindow")["workspace"]["name"]
|
|
||||||
if active_ws.startswith("special:"):
|
|
||||||
toggle_ws = active_ws[8:]
|
|
||||||
|
|
||||||
hypr.dispatch("togglespecialworkspace", toggle_ws)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user