Skip to content

toggle: add spawnThenToggle client option#117

Open
Qbushey wants to merge 2 commits into
caelestia-dots:mainfrom
Qbushey:toggle-spawn-then-toggle
Open

toggle: add spawnThenToggle client option#117
Qbushey wants to merge 2 commits into
caelestia-dots:mainfrom
Qbushey:toggle-spawn-then-toggle

Conversation

@Qbushey

@Qbushey Qbushey commented Jun 11, 2026

Copy link
Copy Markdown

Fixes #73

Windows spawned via IPC (e.g. caelestia shell controlCenter open) ignore the [workspace special:X] exec rule, so the first caelestia toggle <ws> spawns the window on the current workspace and never opens the special workspace; only the second toggle moves it there.

This adds a per-client spawnThenToggle option that dispatches togglespecialworkspace right after the client command is spawned, which is the approach Mestane tested and confirmed working in the issue thread.

"controlcenter": {
    "Caelestia Settings": {
        "enable": true,
        "match": [{ "initialTitle": "Caelestia Settings" }],
        "command": ["caelestia", "shell", "controlCenter", "open"],
        "move": true,
        "spawnThenToggle": true
    }
}

Default behaviour is unchanged: without the option set, toggling works exactly as before.

Windows spawned via IPC (e.g. shell windows opened through
'caelestia shell ... open') ignore the [workspace special:X] exec rule,
so the special workspace never opens on first toggle. The new option
toggles the workspace open after spawning the client command.

Fixes caelestia-dots#73
@Qbushey Qbushey marked this pull request as draft June 11, 2026 18:12
@Mestane

Mestane commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This is more accurate for json files. I didn't really pay much attention to it. you can delete the snake_case client. It's better this way.

Keep only the camelCase spawnThenToggle key, per review feedback.
@Qbushey Qbushey force-pushed the toggle-spawn-then-toggle branch from 76fc1f1 to 312d2e4 Compare June 12, 2026 14:33
@Qbushey Qbushey marked this pull request as ready for review June 12, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] toggleing special workspace execute command but not open workspace

2 participants