Tudor Brindus 3bae1e8c02 commands/layout: cycle stacked/tabbed/split on bare layout toggle
Bare `layout toggle` only flipped between splith and splitv, the same
as `layout toggle split`. Both sway(5) and i3's `con_toggle_layout`
define it as cycling stacked -> tabbed -> last split layout, with any
split layout going to stacked.

Implement that cycle. Leaving tabbed reuses `toggle_split_layout`,
which returns `prev_split_layout` (or the default orientation) for a
non-split layout.
2026-11-28 17:59:02 +01:00
2019-12-16 14:35:58 -05:00
2024-02-23 17:43:19 +03:00
2025-11-20 12:31:30 +01:00
2016-07-04 14:12:32 +02:00
2023-03-26 23:22:30 +02:00
2017-01-06 13:45:48 -05:00
2024-05-21 11:44:39 -04:00
2026-05-14 09:08:50 +02:00

sway

English - عربي - Azərbaycanca - Česky - Deutsch - Dansk - Español - Français - ქართული - Ελληνικά - हिन्दी - Magyar - فارسی - Italiano - 日本語 - 한국어 - Nederlands - Norsk - Polski - Português - Română - Русский - Српски - Svenska - Türkçe - Українська - 中文-简体 - 中文-繁體

sway is an i3-compatible Wayland compositor. Read the FAQ. Join the IRC channel (#sway on irc.libera.chat).

Release Signatures

Releases are signed with E88F5E48 and published on GitHub.

Installation

From Packages

Sway is available in many distributions. Try installing the "sway" package for yours.

Compiling from Source

Check out this wiki page if you want to build the HEAD of sway and wlroots for testing or development.

Install dependencies:

  • meson *
  • wlroots
  • wayland
  • wayland-protocols *
  • pcre2
  • json-c
  • pango
  • cairo
  • gdk-pixbuf2 (optional: additional image formats for system tray)
  • swaybg (optional: wallpaper)
  • scdoc (optional: man pages) *
  • git (optional: version info) *

* Compile-time dep

Run these commands:

meson setup build/
ninja -C build/
sudo ninja -C build/ install

Configuration

If you already use i3, then copy your i3 config to ~/.config/sway/config and it'll work out of the box. Otherwise, copy the sample configuration file to ~/.config/sway/config. It is usually located at /etc/sway/config. Run man 5 sway for information on the configuration.

Running

Run sway from a TTY or from a display manager.

Languages
C 98.4%
Meson 1.2%
Shell 0.4%