This is my currently unnamed sway fork. Sway is an i3-compatible Wayland compositor.
This fork adds some features and small tweaks to sway that I like.
Install dependencies:
- meson *
- wlroots (my fork!)
- wayland
- wayland-protocols *
- pcre2
- json-c
- pango
- cairo
- gdk-pixbuf2 (optional: system tray)
- scdoc (optional: man pages) *
- git (optional: version info) *
- Zig (master branch! Optional, for now: new fancy features) *
* Compile-time dep
Clone my wlroots fork into subprojects
(so it's subprojects/wlroots
).
Then use the Zig build system. Start with zig build -h
for help or zig build run
to quickly run.
If Zig is undesirable, the Meson build system might still work (but it doesn't have all features!)
meson build/
ninja -C build/
sudo ninja -C build/ install
On systems without logind nor seatd, you need to suid the sway binary:
sudo chmod a+s /usr/local/bin/sway
Sway will drop root permissions shortly after startup.
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.
Run sway
from a TTY. Some display managers may work but are not supported by
sway (gdm is known to work fairly well).