Skip to content

auto split none for container with one window #7950

Open
@name-snrl

Description

@name-snrl

Please read the following before submitting:

  • We are not accepting any new window management features unless they get implemented by i3.

I apologize, but split none already exists in sway and is still not implemented in i3.

My current flow.

I recently started using the workspace_layout tabbed setting and found it very handy. I also have the splith, splitv and split none bindings for when I want to split/undo a container, while never using the tabbed or stacked layout on child, so I have no bindings for switching the layout. So I got a workflow with tabs inside which are splits.

The feature request

Make split none respect the workspace_layout option:

If I open a new workspace with one window (H[T[foot]]), then split it (H[T[H[foot foot]]]), work a bit, after closing or moving the second window I get H[T[H[foot]]]. Now if I realize I don't want to split the container anymore I use split none and expect my layout to revert to H[T[foot]] but instead I get H[foot].

Note: if the workspace had multiple tabs (H[T[foot foot]]), everything works fine.

New option for automatic undo split

It would be cool to have a setting to automatically undo a split if there is only one window. We could implement this by running a check when the window is moved/closed. We could check all workspaces or the container from which the action was performed and if there is a split with one window we would undo it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or incremental improvementwindow-managementConfiguring and arranging toplevels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions