Skip to content
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

feature request: layouts #17

Open
agzam opened this issue Jun 30, 2019 · 3 comments
Open

feature request: layouts #17

agzam opened this issue Jun 30, 2019 · 3 comments

Comments

@agzam
Copy link
Owner

agzam commented Jun 30, 2019

Would be nice to have window layouts or workspaces that can be persisted and restored at will.

@jaidetree
Copy link
Collaborator

I think this ties into what was discussed in #119 for the tiling window features.

Found https://www.hammerspoon.org/docs/hs.window.layout.html today which might be useful for that or implementing our version with that API. Didn't look at it too deeply yet.

The key question that comes to mind though is how should we store it? I'm leaning towards a JSON file in ~/.spacehammer/config/layouts.json but open to discussion\alternatives.

@agzam
Copy link
Owner Author

agzam commented Sep 15, 2021

I wrote this issue when there was no prospect of tiling WM anywhere on the horizon. I think the scope of this ticket would change significantly. Maybe let's put a pin in it for now?

@jaidetree
Copy link
Collaborator

That's fine. I do have a working implementation I've been using for a year or so https://github.com/eccentric-j/dotfiles/blob/f309465a098bd50bec9ab559626b7fa7ce36948d/spacehammer/layouts.fnl. I wasn't sure how to best incorporate it because these layouts are clearly defined against my grid settings and personal preference.

If people are interested in this, I could create a simple higher-order-function for taking a grid string to apply a layout. Also of note, applying a layout once applies it to the current screen, applying it again will apply it to the next screen and any further repeats will cycle through screens until another layout is applied or another window is targeted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants