Updates from Ricky Lindén

Installing qtile (on Ubuntu based distros)

[linkstandalone]

qtile is a tiling window manager written in Python that I've been happily using for a few months now. On Ubuntu, Mint and similar Linux distributions it's unfortunately not available in the official repositories, so the easiest way to get it is either to replace Ubuntu with an Arch based distribution, or build it from source. Here I'll go through how to build it from source on Linux Mint 20.1 (has worked well for me on Ubuntu 20.04 as well).

Always be aware that installing programs outside of the official repositories might make your system less stable. I haven't personally had issues, but please be aware if you follow my instructions it's on your own risk. (And in case you are here many moons after 28 March 2021, you might just prefer following the official documentation instead.)

Besides taking a backup, you need to:

1. Have Python, pip and git installed

sudo apt install python3 python3-pip git

2. Install these (in the following order!)

sudo apt install libxcb-render0-dev libffi-dev

pip3 install xcffib

sudo apt install libcairo2

pip3 install --no-cache-dir cairocffi

sudo apt-get install libpangocairo-1.0-0

pip3 install dbus-next

4. Clone the git repo, cd into it and install qtile

git clone git://github.com/qtile/qtile.git

cd qtile

pip3 install .

5. a) Finally create the qtile.desktop file (replace vim with nano or whatever text editor of your choice)

sudo vim /usr/share/xsessions/qtile.desktop

5. b) In that file paste the following, save and quit

[Desktop Entry]
Name=Qtile
Comment=Qtile Session
Exec=qtile start
Type=Application
Keywords=wm;tiling



That's it! Logout, choose you want to log into qtile and start configuring your config located in: ~/.config/qtile/config.py

(If you need a reference, you can find my config over at sourcehut.)