pip install hyprland-ipcThis package requires Python 3.12 or newer.
from hyprland_ipc import HyprlandIPC
# Discover socket paths from the environment
ipc = HyprlandIPC.from_env()
# Print two events then exit
for i, event in enumerate(ipc.events()):
print(event)
if i == 1:
breakhyprland-ipc is distributed under the terms of the MIT license.