Install this version:
emerge -a =x11-wm/qtile-0.35.0-r1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =x11-wm/qtile-0.35.0-r1
Or alternatively:
emerge --autounmask-write -a =x11-wm/qtile-0.35.0-r1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=standalone
PYPI_VERIFY_REPO=https://github.com/qtile/qtile
PYTHON_COMPAT=( python3_13 )
inherit distutils-r1 pypi virtualx
DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
HOMEPAGE="
https://qtile.org/
https://github.com/qtile/qtile/
https://pypi.org/project/qtile/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
IUSE="pulseaudio wayland"
DEPEND="
>=dev-python/cairocffi-1.7.0[${PYTHON_USEDEP}]
>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
wayland? (
dev-libs/libinput:=
dev-libs/wayland
gui-libs/wlroots:0.19
)
"
RDEPEND="
${DEPEND}
dev-python/dbus-fast[${PYTHON_USEDEP}]
dev-python/pygobject[${PYTHON_USEDEP}]
>=dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
x11-libs/cairo[X,xcb(+)]
x11-libs/libnotify[introspection]
x11-libs/pango
pulseaudio? (
dev-python/pulsectl-asyncio[${PYTHON_USEDEP}]
media-libs/libpulse
)
"
DEPEND+="
wayland? (
dev-libs/wayland-protocols
)
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/isort[${PYTHON_USEDEP}]
dev-python/libcst[${PYTHON_USEDEP}]
media-gfx/imagemagick[X]
x11-base/xorg-server[xephyr,xvfb]
x11-terms/xterm
)
wayland? (
dev-util/wayland-scanner
)
"
EPYTEST_PLUGINS=( anyio pytest-{asyncio,httpbin} )
EPYTEST_RERUNS=5
: ${EPYTEST_TIMEOUT:=180}
distutils_enable_tests pytest
python_prepare_all() {
distutils-r1_python_prepare_all
mkdir bin || die
}
src_compile() {
local -x CFFI_TMPDIR=${T}
local DISTUTILS_CONFIG_SETTINGS_JSON="{\"backend\": \"$(usex wayland wayland x11)\"}"
distutils-r1_src_compile
}
src_test() {
virtx distutils-r1_src_test
}
python_test() {
local EPYTEST_DESELECT=(
# mypy stuff
test/test_check.py
test/migrate/test_check_migrations.py
# TODO
'test/backend/wayland/test_idle_inhibit.py::test_inhibitor_open[1-x11-InhibitorConfig]'
'test/backend/wayland/test_idle_inhibit.py::test_inhibitor_visible[1-x11-InhibitorConfig]'
'test/backend/wayland/test_idle_inhibit.py::test_inhibitor_focus[1-x11-InhibitorConfig]'
'test/backend/wayland/test_idle_inhibit.py::test_inhibitor_fullscreen[1-x11-InhibitorConfig]'
'test/backend/wayland/test_idle_inhibit.py::test_inhibitor_global[1-x11-InhibitorConfig]'
)
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
cp -R "${S}/test" . || die
local -x TZ=UTC
nonfatal epytest --backend=x11 $(usev wayland '--backend=wayland')
local ret=${?}
rm -rf test || die
[[ ${ret} -eq 0 ]] || die -n "Tests failed with ${EPYTHON}"
}
python_install_all() {
local DOCS=( CHANGELOG README.rst )
distutils-r1_python_install_all
insinto /usr/share/xsessions
doins resources/qtile.desktop
insinto /usr/share/wayland-sessions
doins resources/qtile-wayland.desktop
exeinto /etc/X11/Sessions
newexe "${FILESDIR}"/${PN}-session-r1 ${PN}
}
Manage flags for this package:
euse -i <flag> -p x11-wm/qtile |
euse -E <flag> -p x11-wm/qtile |
euse -D <flag> -p x11-wm/qtile
>=dev-python/cairocffi-1.7.0[] >=dev-python/cffi-1.1.0:=[] wayland? ( dev-libs/libinput:= dev-libs/wayland gui-libs/wlroots:0.19 ) wayland? ( dev-libs/wayland-protocols )
>=dev-python/cairocffi-1.7.0[] >=dev-python/cffi-1.1.0:=[] wayland? ( dev-libs/libinput:= dev-libs/wayland gui-libs/wlroots:0.19 ) wayland? ( dev-libs/wayland-protocols ) dev-python/dbus-fast[] dev-python/pygobject[] >=dev-python/xcffib-1.4.0[] x11-libs/cairo[X,xcb(+)] x11-libs/libnotify[introspection] x11-libs/pango pulseaudio? ( dev-python/pulsectl-asyncio[] media-libs/libpulse )
dev-python/setuptools[] dev-python/setuptools-scm[] test? ( dev-python/isort[] dev-python/libcst[] media-gfx/imagemagick[X] x11-base/xorg-server[xephyr,xvfb] x11-terms/xterm ) wayland? ( dev-util/wayland-scanner )