Skip to content

Store the state (windows, workspaces, layout) on change and restore on startup #1564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

grothkopp
Copy link
Contributor

Hello,
it's me again ;)
During development it became extremely annoying to restore my "layouts" manually everytime I had to restart Aerospace after a new compile.
So I vibe-coded* this PR which stores the state in a dotfile and restores it on startup.
It's very helpful to me so I wanted to share it. Again I don't know if this fits in with the overall architecture, but maybe it can become usable (and mergeable) with some changes?

  • I know how to code, but I have no experience with swift.

@grothkopp
Copy link
Contributor Author

I've just seen that some tests are failing. I think probably because in Sources/AppBundle/tree/frozen/closedWindowsCache.swift in restoreTreeRecursive I modified a loop to handle missing window IDs?
Anyway before I work on that I'll wait for your feedback if this PR is worth putting more time in.

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.

1 participant