Below are the preferred installation methods for specific distros. If you are running something else, please see Installing From Source.
Installing From Source¶
First, you need to install all of Qtile’s dependencies (although some are optional/not needed depending on your python version, as noted below).
Qtile uses xcffib as an XCB binding, which has its own instructions for
building from source. However, if you’d like to skip building it, you can
install its dependencies (
sudo apt-get install libxcb-render0-dev on
Ubuntu), and install it via pypi:
pip install xcffib
Qtile uses cairocffi with XCB support via xcffib. You’ll need
the underlying library used by the binding. Once you’ve got that installed, you
can use the latest version on pypi:
pip install cairocffi
You’ll also need
libpangocairo, which on Ubuntu can be installed via
apt-get install libpangocairo-1.0-0. Qtile uses this to provide text
rendering (and binds directly to it via cffi with a small in-tree binding).
Qtile uses the asyncio module as introduced in PEP 3156 for its event loop. Based on your Python version, there are different ways to install this:
Python >=3.4: The asyncio module comes as part of the standard library, so there is nothing more to install.
Python 3.3: This has all the infastructure needed to implement PEP 3156, but the asyncio module must be installed from the Tulip project. This is done by calling:
pip install asyncio
Alternatively, you can install trollius (see next point).
Python 2 and <=3.2 (and 3.3 without asyncio): You will need to install trollius, which backports the asyncio module functionality to work without the infastructure introduced in PEP 3156. You can install this from PyPi:
pip install trollius
Python <=2.6 you will need to install importlib from PyPi:
pip install importlib
Until someone comes along and writes an asyncio-based dbus library, qtile will
python-dbus to interact with dbus. This means that if you want
to use things like notification daemon or mpris widgets, you’ll need to
install python-gobject and python-dbus. Qtile will run fine without these,
although it will emit a warning that some things won’t work.
With the dependencies in place, you can now install qtile:
git clone git://github.com/qtile/qtile.git cd qtile sudo python setup.py install