apt-transport-https
First, if you are on Ubuntu Cosmic, you need to manually compile json-c
because the version provided is 0.12.1
, but sway requires at least version 0.13
. It is pretty straight forward, so take a look here.
Then, we need to install common dependencies between wlroots
and sway-1.0
.
sudo apt install gcc pkgconf meson ninja-build libwayland-dev libinput-dev libcap-dev
Secondly, we need to install wlroots
dependencies.
sudo apt install wayland-protocols libegl1-mesa-dev libgles2-mesa-dev libdrm-dev libgbm-dev libxkbcommon-dev libudev-dev libpixman-1-dev
If you want xwayland/X11 support, add these dependencies.
sudo apt install libxcb-composite0-dev libxcb-xfixes0-dev libxcb-image0-dev libxcb-render0-dev libx11-xcb-dev
Let’s compile wlroots
.
git clone https://github.com/swaywm/wlroots
cd wlroots
meson build
cd build
ninja
sudo ninja install
Then, build sway
.
sudo apt install libjson-c-dev libpcre3-dev libcairo-dev libpango1.0-dev libpangocairo-1.0-0 libgdk-pixbuf2.0-dev libpam-dev
git clone https://github.com/swaywm/sway -b 1.0-alpha.5
cd sway
meson build
cd build
ninja
sudo ninja install