Skip to content
/ sway Public
forked from swaywm/sway

i3-compatible Wayland compositor, with added hacks. Requires my wlroots fork

License

Notifications You must be signed in to change notification settings

udfn/sway

 
 

Repository files navigation

Unnamed sway fork

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.

Installation

Compiling from Source

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.

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. Some display managers may work but are not supported by sway (gdm is known to work fairly well).

About

i3-compatible Wayland compositor, with added hacks. Requires my wlroots fork

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 94.3%
  • Zig 4.1%
  • Meson 1.2%
  • Shell 0.4%