aboutsummaryrefslogtreecommitdiffstats
path: root/README.zh-CN.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.zh-CN.md')
-rw-r--r--README.zh-CN.md68
1 files changed, 68 insertions, 0 deletions
diff --git a/README.zh-CN.md b/README.zh-CN.md
new file mode 100644
index 00000000..3e56f229
--- /dev/null
+++ b/README.zh-CN.md
@@ -0,0 +1,68 @@
1# sway
2
3sway 是和 i3 兼容的 [Wayland](http://wayland.freedesktop.org/) compositor.
4阅读 [FAQ](https://github.com/swaywm/sway/wiki). 加入 [IRC
5频道](http://webchat.freenode.net/?channels=sway&uio=d4) (#sway on
6irc.freenode.net).
7
8如果你想要支持 sway 的发展, 请到这 [SirCmpwn's
9Patreon page](https://patreon.com/sircmpwn)贡献.
10
11## 发布签名
12
13发布以 [B22DA89A](http://pgp.mit.edu/pks/lookup?op=vindex&search=0x52CB6609B22DA89A) 签名
14并发布在 [GitHub](https://github.com/swaywm/sway/releases).
15
16## 安装
17
18### 从软件包中
19
20Sway 在很多发行版中可用. 尝试在你的发行版中安装 "sway" 包.
21如何这不可用, 请到 [此 wiki 页](https://github.com/swaywm/sway/wiki/Unsupported-packages)
22检查针对你的发行版关于安装的信息.
23
24如果你有兴趣给你的发行版打包 sway, 停下来到 IRC 频道或者发邮件至 sir@cmpwn.com 获取建议.
25
26### 从源代码编译
27
28安装依赖:
29
30* meson \*
31* [wlroots](https://github.com/swaywm/wlroots)
32* wayland
33* wayland-protocols \*
34* pcre
35* json-c
36* pango
37* cairo
38* gdk-pixbuf2 \*\*
39* [scdoc](https://git.sr.ht/~sircmpwn/scdoc) (可选的: man pages) \*
40* git \*
41
42_\*编译时依赖_
43
44_\*\*可选的: swaybg 依赖_
45
46运行这些命令:
47
48 meson build
49 ninja -C build
50 sudo ninja -C build install
51
52在没有 logind 的系统上, 你需要给 sway 二进制设置 suid:
53
54 sudo chmod a+s /usr/local/bin/sway
55
56Sway 将会在启动后尽快丢掉 root 权限.
57
58## 配置
59
60如果你已经在使用 i3, 接下来复制你的 i3 配置到 `~/.config/sway/config`
61它可以直接工作. 或者, 复制样本配置文件到
62`~/.config/sway/config`. 它通常位于 `/etc/sway/config`.
63运行 `man 5 sway` 获取关于配置的信息.
64
65## 运行
66
67从 TTY 中运行 `sway` . 某些显示管理器可能会工作但并不被 sway 支持
68(已知的 gdm 工作得非常好.