swaywm /sway

i3-compatible Wayland compositor

★ 17,522⑂ 1,326👁 208⑃ 4,065● 5,200▤ 84
CMITCreated 2015-08-05swaywm.org
下载:1.121.12 ↓1.122026-05-25
+2
日增长
17,522
stars
1,326
forks
208
watchers
4,065
prs
5,200
issues
84
releases

README

sway

sway 是和 i3 兼容的 Wayland compositor。
 查看FAQ/ 加入IRC频道 (sway on irc.libera.chat)

 发行签名

每个发行版都以 E88F5E48 的密钥签名并发布在 GitHub上。

 安装

 从包管理器安装

Sway 在很多发行版中可用。请尝试在你的发行版中安装 sway 。

 从源码编译

如果想要构建最新版sway和wlroots用以测试和开发,请查看 此wiki页面

安装如下依赖:

 meson \
 wlroots
 wayland
 wayland-protocols \
 pcre2
 json-c
 pango
 cairo
 gdk-pixbuf2 (可选的: system tray)
 scdoc (可选: man pages) \
 git \

_\编译时依赖_

运行如下命令:

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

 配置

如果你已经在使用i3,直接复制i3配置文件到 ~/.config/sway/config,这是开箱即用的。或者,你可以复制配置样例到~/.config/sway/config。它通常位于 /etc/sway/config。
运行 man 5 sway 获取关于配置的更多信息。

 运行

从 TTY 中运行 sway。 某些显示管理器(Display Manager)也许可以工作但不被 sway 支持。
(已知 gdm 工作得非常好)。

Top issues

Latest release

1.12 1.12 2026-05-25
Sway 1.12 contains 138 changes from 50 contributors.

This release depends on wlroots 0.20.0. See the wlroots release notes.

 New features

- Add support for capturing individual windows.
- Add support for HDR10 when running with the Vulkan renderer.
- Add support for new protocols: color-management-v1, color-representation-v1, xdg-toplevel-tag-v1, ext-workspace-v1, wl_fixes.
- Add a new --device-primaries to output color_profile to use color primaries advertised in EDID.
- Add support for keypad slide switches.

 Changes

- The default configuration file now ships key bindings 

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON