add nightly builds section; remove script for sway 1.2

Tudor Brindus 2020-12-31 20:31:50 -05:00
parent 0d4a512fc8
commit 391f0684ca

@ -1,14 +1,20 @@
## Before installing
**Note**: these instructions are community-maintained and are not supported by sway.
**Note**: these instructions are community-maintained and are not supported by the Sway project.
This document will guide you through installing Sway on Debian 10 (Buster).
### install Sway 1.2 script
## Nightly builds
If you prefer to just run a script, you can use this gist (which will install Sway 1.2 + additional goodies): <https://gist.github.com/davidrios/535c43cbaafe6be665b7c6bd345ea6f4>.
There exists a [Debian repository](https://apt.quantum2.xyz/sway-utils/) that includes Debian 10-compatible `sway` package which is rebuilt nightly. Run following commands in order to install Sway from the repository:
### install Sway 1.4
```
curl https://quantum2.xyz/apt.key | sudo apt-key add -
echo 'deb [arch=amd64] https://apt.quantum2.xyz/sway-utils/ buster main' | sudo tee /etc/apt/sources.list.d/sway-utils.list
sudo apt update
sudo apt install sway
```
## Sway 1.4 installation from source
proceed with the manual steps below for installing sway 1.4.
Make sure you have activated the `contrib` and `non-free` apt repositories.
@ -49,13 +55,13 @@ Nevertheless whatever way you choose and you now have meson (>= 0.53.1). Continu
### install 1.4 continued
Create a directory to organise sources:
Create a directory to organize sources:
```
mkdir ~/sway-src
```
## Install wlroots
### Install wlroots
First we'll install [wlroots](https://github.com/swaywm/wlroots) 0.10 with almost all extra dependencies (for now meson have been removed from this install line, it will return as soon as the debian stable (buster) apt meson package have been updated to >=0.53.1):
````
@ -77,7 +83,7 @@ meson build
sudo ninja -C build install
````
## Install json-c
### Install json-c
Debian's json-c version is too old, we need to manually build a newer version:
@ -96,7 +102,7 @@ sudo make install
sudo ldconfig
```
## Install scdoc (optional)
### Install scdoc (optional)
scdoc is needed for manual pages generation, which I recommend, but Debian's (stable) scdoc version is also too old, we need to manually build a newer version (or get it via [backports](https://packages.debian.org/buster-backports/scdoc)):
@ -109,7 +115,7 @@ make PREFIX=/usr/local -j$CPUCOUNT
sudo make PREFIX=/usr/local install
```
## Install sway
### Install sway
Next we'll install sway 1.4:
````
@ -123,7 +129,7 @@ meson build
sudo ninja -C build install
````
## Install swaybg
### Install swaybg
We need to install swaybg, or else the default configuration won't work:
```