+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
#4261Mouse cursor can no longer click on anything or change focus121 comments · 2019-06-17#8194sway crashes when interacting with chromium80 comments · 2024-06-01#5757Sway freeze/crash in combination with external screens and (xwayland and/or swaylock and/or dpms)71 comments · 2020-10-23#4882Show window icons in titlebar68 comments · 2020-01-05#5759One monitor won't wake up after swayidle54 comments · 2020-10-23#719xcape features (double bind modifiers)53 comments · 2016-06-20#5642WLR_DRM_DEVICES - issues with nouveau + intel50 comments · 2020-08-23#5076Automatic VRR management47 comments · 2020-03-06
Latest release
1.12 1.12 2026-05-25Sway 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