Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/caelestia/subcommands/toggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,15 @@ def run(self) -> None:
return

spawned = False
needs_toggle = False
if self.args.workspace in self.cfg:
for client in self.cfg[self.args.workspace].values():
if "enable" in client and client["enable"] and self.handle_client_config(client):
spawned = True
if client.get("spawn_then_toggle"):
needs_toggle = True

if not spawned:
if not spawned or needs_toggle:
hypr.dispatch("togglespecialworkspace", self.args.workspace)

def get_clients(self) -> list[dict[str, Any]]:
Expand Down