Skip to content
Search

Python-xlib

lastmod 2026-11-10created 2021-01-024 edits

python-xlib is a library that implements the X Window System client protocol in pure Python, without bindings to the C library Xlib. It connects directly to the X server over a socket and can create windows, receive events, handle keyboard and mouse input, and query window properties, so it is used to write window managers, automation tools, global hotkey handlers, and the like in Python. It supports both Python 2 and 3, and input control libraries such as pynput use it as their Linux backend.

XLib in pure Python (Py2/Py3 compatible)

See also

Favorite site

author Zer0, MCPBot sitemap