-
Notifications
You must be signed in to change notification settings - Fork 6
TabMode
(Available from the version 0.2.0)
Personally, I sometimes find myself in the situation when I have a bunch of opened windows on a workspace. However, at one point I could need to focus on a single window at a time; moreover, the windows might be too small in the current layout.
Therefore, I would need having all those windows in a tabbed layout, where each window is displayed in a single tab.
If you have a layout where windows have been split or organized in a not trivial way, the above setup might be a bit tricky to achieve.
That is because how i3wm works, having windows and containers in a tree fashion structure.
i3-autolayout
offers a simple command to obtain a tabbed layout with one single window per tab.
i3-autolayout tabmode
Of course, you can bind this command in your i3 configuration (generally, ~/.config/i3/config
). For example:
bindsym $mod+w exec i3-autolayout tabmode
(Available from the version 0.2.3)
tabmode
works as toggleable command.
When invoked, it detects whether the workspace is already in tabmode.
In that case, the Default
layout for the workspace will be applied.
(Available from the version 0.2.3)
As its toggleable nature, it might be very handy to switch layout come and forth saving the previous layout during tabmode.
tabmode
is integrated with save/restore layout feature of i3-autolayout
.
You can simply specify a file where the layout should be saved before switch the tabmode. When invoked again tabmode
will restore the previously saved layout.
For instance, a possible configuration might be:
bindsym $mod+w exec i3-autolayout tabmode --file-layout /tmp/i3-autolayout-tabmode.save
(Available from the version 0.2.3)
For maximum flexibility, the command accepts a workspace as input. If the workspace is not provided, it will operate on the currently focused workspace.
i3-autolayout tabmode [--workspace-num <WORKSPACE_NUM>]