You may apply these USE-Flags: X, glib, opengl, svg and xcb to cairo
echo "x11-libs/cairo X glib opengl svg xcb" >> /etc/portage/package.use
echo "dev-python/pycairo ~amd64 > /etc/portage/package.mask"
echo "dev-python/pycairo xcb > /etc/portage/package.use"
Simply unmask and install it
echo "x11-wm/qtile ~amd64 > /etc/portage/package.mask"
emerge -av qtile
Don’t forget the config.py
mkdir ~/.config/qtile
cp build/lib/libqtile/resources/default_config.py ~/.config/qtile/config.py
You can test your installation in Xephyr. If you don’t have Xephyr you need to set the kdrive USE-Flag for xorg-server
echo "x11-base/xorg-server kdrive" >> /etc/portage/package.use
You can run Xephyr with
Xephyr :1 -screen 800x600 -av -noreset
In another term you set DISPLAY to :1
DISPLAY=:1
You start qtile simply with:
qtile
Contributed by Jonathan Sielhorst