Usage⚓︎
Quick start and examples.
Install⚓︎
# PyPI
pip install niripy
poetry add niripy
uv add niripy
# AUR
yay -S python-niripy
paru -S python-niripy
Or use Nix with the provided flake:
Examples⚓︎
Instance is the main class for interacting with Niri. It attaches to the Niri socket and provides methods for querying and controlling Niri.
The models returned (e.g. Windows, Outputs, Workspaces) are all pydantic models!