sway README

The project's README from github.com/swaywm/sway. As one markdown file: README.md.

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:

* 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.

sway (swaywm/sway)

Searching Database…

17.4K ·GitHub
这是什么?Sway 是一个兼容 i3 的 Wayland 合成器:在 Linux 上负责绘制和排列窗口的程序,会像 i3 窗口管理器那样自动平铺窗口。
'兼容 i3' 是什么意思——这基本上就是 Wayland 版的 i3 吗?是的:Sway 在行为和配置方式上都还原了 i3 平铺窗口管理器,但它是一个原生 Wayland 合成器,而不是 X11 窗口管理器,所以你可以在更新的显示协议上获得 i3 的使用体验。
从源码编译它需要什么?需要 meson 和 ninja 这两个构建工具,以及 wlroots、wayland、wayland-protocols、pcre2、json-c、pango、cairo 和 gdk-pixbuf2 这些库。swaybg(用于设置壁纸)、scdoc(用于生成 man 手册)和 git 是可选的。
wlroots 是什么?它是用于开发 Wayland 合成器的库,Sway 就是基于它构建的。它是编译时的必需依赖,开发设置 wiki 里介绍了如何一起从源码编译 sway 和 wlroots。
它能显示壁纸和系统托盘吗?可以——可选的配套程序 swaybg 用于显示壁纸,系统托盘支持由 gdk-pixbuf2 提供,还可以安装额外的可选图像格式库来支持更多托盘图标格式。
GitHub 上的发布版本有签名吗?有——发布版本使用密钥 E88F5E48 签名并发布在 GitHub 上,所以你可以在安装前校验下载的内容。
Creator
swaywm
Size
30.1 MB
Stars
17.4K
Age
11y
Commits · 90 Days