mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Bind Applications to Specific Default Workspaces (like I3/Sway) #293
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @imgurbot12 on GitHub (Feb 13, 2024).
Feature
Sway/I3 have configuration options that allow controlling where windows spawn based on a set of criteria.
This plays a big part in my typical workflow and would be huge improvement if Komorebi could support it.
Sway/I3 Example
Reasoning
Having to move windows manually every time you restart komorebi gets incredibly tedious.
It's nice to have everything exactly where you expect on startup.
Especially when those applications are auto started on boot.
Potential Design
In terms of design, I hope there would be similar configuration controls in komorebi.json. maybe something like:
I'm not sure how much metadata is available on running applications. perhaps simplifying everything to match a pattern on the window-name would be easier/better.
If its just a mapping of name-patterns to workspaces it could be simplified to:
@azinsharaf commented on GitHub (Feb 13, 2024):
have you tried workspace_rules and initial_workspace_rules params in the json file?
@imgurbot12 commented on GitHub (Feb 13, 2024):
@azinsharaf I can't say I have. I had no idea it even existed, even after a cursory glance through
schema.json.Now that you mention it though
initial_workspace_rulesis exactly what I needed. Thank you for pointing it out.That being said, was there any place to find info on that existing feature? I tried looking through all the existing issues and PRs to try and find anything related before submitting an issue myself but couldn't find any resources about configuration beyond a few examples given and the readme.
The only reference to this particular rule is in a random example given without context in the following issue: https://github.com/LGUG2Z/komorebi/issues/427
Regardless, that solves my request. Thanks!
@LGUG2Z commented on GitHub (Feb 13, 2024):
https://LGUG2Z.github.io/komorebi will be "officially" launching this week 🎉