4 ms·
Yes. Sway represents the world as a tree. You can nest containers as you like. e.g. H[firefox T[Alacritty Alacritty]] describes a horizontal split with Firefox
by chrismorgan 6y ago
Yes. Sway represents the world as a tree. You can nest containers as you like. e.g. H[firefox T[Alacritty Alacritty]] describes a horizontal split with Firefox on the left side and a tab container of two Alacrittys on the right side. If you want H[S[T[T[Alacritty Alacritty] H[Alacritty Alacritty] Alacritty] V[Alacritty Alacritty]] Alacritty], go wild!
When you subsequently want to move a group of things around, you can focus the parent container and move it around as though it were a window. (Out of the box, Super+a is `focus parent`, though curiously there’s no `focus child` binding in the default config, so to return to a child you pretty much have to focus a sibling or another container, or use the mouse.)
- topaz0 6y agoFor what it's worth, my habit in i3/sway is usually to represent "groups of tabs" as single tabbed containers on different desktops, and rarely to have multiple tabbed containers next to each other on a single desktop. Although occasionally I do the latter, too.