1
1
mirror of https://github.com/swaywm/sway synced 2024-11-23 00:51:58 +01:00
i3-compatible Wayland compositor https://swaywm.org
Go to file
Manuel Stoeckl 2dc4978d8a Use -fmacro-prefix-map to strip build path
Because meson does not provide a simple way to get the relative build
path, it is computed with a pair of foreach loops. As meson does not
have a simple way to compute string length (except via underscorify
and 63 split operations), the build script uses a shell command
instead.

If the compiler does not suppot -fmacro-prefix-map, then fall back
to passing in the relative path prefix, and use its length to offset
the uses of __FILE__ in log messages so that the build path is at
least still not included in the logs. This is significantly more
efficient than calling _sway_strip_path.
2019-07-15 16:35:50 -04:00
.builds
.github
assets
client
common Use -fmacro-prefix-map to strip build path 2019-07-15 16:35:50 -04:00
completions
contrib
include Use -fmacro-prefix-map to strip build path 2019-07-15 16:35:50 -04:00
protocols Replace meson generator with custom_target 2019-06-24 09:38:41 +03:00
security.d
sway Layout tiled using a width/height fraction 2019-07-14 11:13:55 -04:00
swaybar swaybar-protocol.7: fix block border descriptions 2019-06-28 10:34:09 +03:00
swaymsg
swaynag
.clang-format
.editorconfig
.gitignore
config.in
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE
meson_options.txt
meson.build Use -fmacro-prefix-map to strip build path 2019-07-15 16:35:50 -04:00
README.de.md
README.es.md
README.fr.md
README.ja.md
README.md
README.pl.md
README.uk.md
README.zh-CN.md
sway.desktop

sway

English - 日本語 - Français - Українська - Español - Polski - 中文-简体 - Deutsch

sway is an i3-compatible Wayland compositor. Read the FAQ. Join the IRC channel (#sway on irc.freenode.net).

If you'd like to support sway development, please contribute to SirCmpwn's Patreon page.

Release Signatures

Releases are signed with B22DA89A and published on GitHub.

Installation

From Packages

Sway is available in many distributions. Try installing the "sway" package for yours. If it's not available, check out this wiki page for information on installation for your distributions.

If you're interested in packaging sway for your distribution, stop by the IRC channel or shoot an email to sir@cmpwn.com for advice.

Compiling from Source

Install dependencies:

  • meson *
  • wlroots
  • wayland
  • wayland-protocols *
  • pcre
  • json-c
  • pango
  • cairo
  • gdk-pixbuf2 (optional: system tray)
  • scdoc (optional: man pages) *
  • git *

*Compile-time dep

Run these commands:

meson build
ninja -C build
sudo ninja -C build install

On systems without logind, 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).