i3-compatible Wayland compositor
Branch: master
Clone or download
RedSoxFan and emersion input/cursor: allow whole-window bindings on ws
To match i3's behavior, this allows mouse bindings to be triggered over
a workspace when `--whole-window` is given.
Latest commit f078a1c Feb 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.builds ci: add FreeBSD Feb 19, 2019
assets Recompressed PNG files Jan 6, 2017
client Fix dead stores found by scan-build Jan 22, 2019
common output_cmd_background: fix no file + valid mode Feb 5, 2019
completions Split swaylock into separate project Jan 14, 2019
contrib A script to make inactive windows transparent Oct 20, 2018
include Add workspace {prev,next}_on_output --create Feb 17, 2019
protocols Implement pointer-constraints-unstable-v1 Jan 30, 2019
security.d delete references to swaygrab Jul 30, 2018
sway input/cursor: allow whole-window bindings on ws Feb 22, 2019
swaybar tray: fix memory leaks Feb 16, 2019
swaybg Removed unused wlroots dependency for sway(bg|bar|msg|nag) Jan 21, 2019
swaymsg ipc: handle unnamed xkb_active_layout_name Feb 11, 2019
swaynag swaynag: remove trailing newlines in config Feb 5, 2019
.clang-format Update .clang-format - not entirely usable yet Jan 11, 2017
.editorconfig Create .editorconfig Jul 4, 2016
.gitignore Allocate minimum size necessary in pango text functions. (#3473) Jan 20, 2019
CONTRIBUTING.md CONTRIBUTING.md: mention tab width for line length Jan 14, 2019
ISSUE_TEMPLATE.md issue template: add instructions for stack traces Dec 17, 2018
LICENSE MIT license Jan 6, 2017
README.bg.md Split swaylock into separate project Jan 14, 2019
README.de.md Split swaylock into separate project Jan 14, 2019
README.el.md Split swaylock into separate project Jan 14, 2019
README.es.md Fix accents Feb 16, 2019
README.fr.md Split swaylock into separate project Jan 14, 2019
README.it.md Split swaylock into separate project Jan 14, 2019
README.ja.md Merge pull request #3417 from swaywm/remove-swaylock Jan 14, 2019
README.md Add Polish README Feb 19, 2019
README.pl.md Add Polish README Feb 19, 2019
README.pt.md Split swaylock into separate project Jan 14, 2019
README.ru.md Split swaylock into separate project Jan 14, 2019
README.uk.md Split swaylock into separate project Jan 14, 2019
config.in config.in: update swayidle/swaylock example Jan 14, 2019
meson.build Fix Meson subproject boolean default options Feb 16, 2019
meson_options.txt Set version in project file Feb 5, 2019
sway.desktop Add Wayland and Xorg session files Aug 20, 2015

README.md

sway

English - 日本語 - Deutsch - Ελληνικά - Français - Українська - Italiano - Português - Русский - Български - Español - Polski

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 **
  • scdoc >= 1.8.1 (optional: man pages) *
  • git *

*Compile-time dep

**optional: required for swaybg

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