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

User-defined layouts through an extension #51

Closed
tchapi opened this issue Oct 19, 2013 · 8 comments · Fixed by #1134
Closed

User-defined layouts through an extension #51

tchapi opened this issue Oct 19, 2013 · 8 comments · Fixed by #1134

Comments

@tchapi
Copy link

tchapi commented Oct 19, 2013

Great work !
What about a config file for creating new custom layouts easily ?

Thanks

Trello Card

@ianyh
Copy link
Owner

ianyh commented Oct 19, 2013

That's an interesting idea, can you elaborate on what you specifically might want to accomplish with this?

@tchapi
Copy link
Author

tchapi commented Oct 21, 2013

Hi
Basically, I work with lots of different applications. Some of them are single windowed, some of them have one or two, and some have a lot.

For these different environments (or spaces), I'd like to tailor a layout that suit my apps best. For instance, I'd like to have a layout for a "productivity" space where I have note-taking apps, and I would like this layout to be basically a grid of little square windows. To date I cannot do this yet, and I think that would be a great addition.

But you're not going to create more than a handful of standard layouts since they're kind of user-related. So I'd like to be able to configure my own layouts.

Technically speaking, I see a config file (yml) that describes the columns / lines of the layout, and defines the primary slot and the others, as well as flow rules, for instance..

Best,

@ianyh
Copy link
Owner

ianyh commented Oct 22, 2013

I actually don't have any objection to a proliferation of people writing lots of different interesting layout algorithms for users to choose from, I just haven't had the time nor found the need to do so myself yet.

Writing a grid layout as you describe should be fairly straightforward and I would be happy to accept it as a PR. I would also be happy to write it myself when I get a chance if you file an issue for it or any other layout algorithms you think you might want.

@ianyh ianyh changed the title Configuration file for layouts User-defined layouts through an extension Jul 20, 2017
@0x1eef
Copy link

0x1eef commented Aug 19, 2017

I guess the preferred language would be Swift, right?

@ianyh
Copy link
Owner

ianyh commented Aug 19, 2017

Not necessarily. Swift is compiled, so of it were used to build an extensible layout system we would have to include a compiler. The thing that comes to mind is actually JavaScript as there is native support via the JavaScriptCore framework (https://developer.apple.com/documentation/javascriptcore).

@0x1eef
Copy link

0x1eef commented Aug 19, 2017

Wow yeah. Looks very nice.

@micimize
Copy link

along the lines of what @tchapi was saying, we could implement a parser for a subset of i3 layout config

@ianyh
Copy link
Owner

ianyh commented Jul 11, 2021

See my comment here, but I have a proposed solution in the above linked PR. #1126 (comment)

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

Successfully merging a pull request may close this issue.

4 participants