Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

luispabon/sway-ubuntu-deb-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived / abandoned

This repo is now archived. I realised keeping all those deb configs and app forks and whatnot was more work that it was worth. I'm now building and installing directly from source, which is far easier at the cost of being a bit less clean on the system.

I recommend you stop using this repo, uninstall all the debs and instead switch to using this https://github.com/luispabon/sway-ubuntu/

Sway builds for ubuntu 20.04

Ubuntu 20.04 build system for sway and related tools. Docker based.

There are branches to this repository for previous ubuntu versions, but they will have outdated source submodules.

Yes, sway is thankfully now in Ubuntu 19.10+. I want to be able to keep up with upstream releases and apply any patches I need for myself.

You do need docker.io and make installed, and your user on the docker group (otherwise you need to sudo the make commands).

If you want clipman for clipboard management, you also need go.

Removed tools

On transition to 20.04, I've removed the following builds:

  • grim
  • slurp
  • swaybg
  • swayidle
  • gtk-layer-shell
  • wl-clipboard

These are now provided by Ubuntu itself at versions recent enough to be perfectly usable. Install these instead.

TL;DR

make yolo

Otherwise...

I'm going to assume you know what you're doing with git and stuff.

How to:

  • sudo apt -y install docker.io make golang-go
  • Clone this repo. Ensure you pull submodules too.
  • make build-image to get the docker image for builds done

The makefile targets will require sudo to fix permissions - docker will be running as root and files created from it will be owned by root as well.

I keep forks of each project to add the required debian folder. Master branches always have it, and for releases sometimes I make a branch, sometimes not. Most of the time I simply track master on upstream. Before you build anything, make sure the branch you're checking out from my fork (origin, not upstream) has the debian folder. The commits the submodules are pinned to are the versions of the apps I'm currently using myself, so these are a good bet.

You need to build wlroots first, as it is a build dependency for other apps. After that build whatever you need in whichever order you need. There's a make build-everything you can use to build all the projects. You don't need to install scdoc in your computer as it's a build dep for manpages. json-c 0.13 and wlroots are mandatory deps for sway though, so make sure you install these.

After you build something, the .deb package will be at the debs/ folder, and debug symbols at ddebs/ which you'll need if you wanna create stack traces for bug reports. You can install these with dpkg -i. If you're missing dependencies that aren't built here, do apt -f install to pull them from ubuntu's repo. make install-all-debs will install all debs that aren't debug symbols and dev headers. It's quite blind in what it installs otherwise - if you have several builds of the same app it will install all of them in sequence and not necessarily newest last so do a cleanup every now and then.