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

Is it possible to create "root" container for every workspaces #8167

Open
L-Trump opened this issue May 20, 2024 · 0 comments
Open

Is it possible to create "root" container for every workspaces #8167

L-Trump opened this issue May 20, 2024 · 0 comments
Labels
enhancement New feature or incremental improvement

Comments

@L-Trump
Copy link

L-Trump commented May 20, 2024

By chance, I found that execute layout toggle split twice would create a nested single container like this:

{
  "type": "workspace"
  "nodes": [
    "id": 20,
    "type": "con",
    "layout": "splith",
    "nodes": [{
      "id": 21,
      "type": "con",
      "app_id": "Alacritty"
    }]
  ]
}

Then every container operations (create/move/change layout) would happen in the top-level container (id=20 here). And some fancy tricks can be applied very simply. For example, move all windows in a workspace to another without change the layout:

swaymsg [con_id="20"] move container to workspace number 2

And then with some scripts, a pseudo full screen can be applied, simply by moving all windows to another workspace and moving the previous focused window back. This is also a interesting workaround for issues like fullscreen transparency.

So, is there a more native way to create such a "root" container for workspaces, or any workaround for it? Moreover, this seems to be a non-intrusive feature, perhaps there could be an option for Sway to implement such a feature?

@L-Trump L-Trump added the enhancement New feature or incremental improvement label May 20, 2024
@L-Trump L-Trump changed the title Is it possible to create a "root" container for every workspaces Is it possible to create "root" container for every workspaces May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

No branches or pull requests

1 participant