Skip to main content

wayfire compositor library

Project description

The Wayfire compositor provides access to its functionalities via Inter-Process Communication (IPC). This repository contains the source code for the python client bindings, as well as many examples of how to use the IPC.

Quickstart

Installation

Python
pip install wayfire

AUR
yay -S python-wayfire

OR

git clone https://github.com/WayfireWM/pywayfire
cd pywayfire
# for a venv: python3 -m venv .venv && . .venv/bin/activate
python3 -m pip install .

Configure wayfire.ini

Activate following plugins. stipc only needed when wayfire.extra.stipc is used.

[core]
plugins = \
  ipc \
  ipc-rules \
  stipc
  ...

Usage examples

Basic usage is simple, import the wayfire.ipc module, create a socket (it will auto-detect the compositor by using the WAYFIRE_SOCKET environment variable) and call its functions:

from wayfire import WayfireSocket

socket = WayfireSocket()
print(socket.list_views())

Many examples can be found in the scripts directory.

Troubleshooting

"Failed to find a suitable Wayfire socket!"

Make sure ipc and ip-rules plugins are activated. Try running with environmental variable: WAYFIRE_SOCKET=/run/user/$(id -u)/wayland-1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wayfire-4.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wayfire-4.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file wayfire-4.0.tar.gz.

File metadata

  • Download URL: wayfire-4.0.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for wayfire-4.0.tar.gz
Algorithm Hash digest
SHA256 6cdeba83f02be73864772436381f344beb0c254c9fbb9464dd9ec64dc10f8741
MD5 d2ef0b558918039ab617104747551b46
BLAKE2b-256 4114ee32a4cf36b3f1a9bc567a9e232fc4fa1457ce6ecb2990046fc7bc4b12ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for wayfire-4.0.tar.gz:

Publisher: wayfire-package.yml on WayfireWM/pywayfire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wayfire-4.0-py3-none-any.whl.

File metadata

  • Download URL: wayfire-4.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for wayfire-4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4994a5dc5dc3be3a2fcfbaa8e51dd706f0742f56d6ee812336c8e456d70e238e
MD5 1435ff1e81db934caf745e4c8e39a7e5
BLAKE2b-256 798e2912a9fa75774213618aec779a3f9d221e856d0d63194cc29f251e4b3295

See more details on using hashes here.

Provenance

The following attestation bundles were made for wayfire-4.0-py3-none-any.whl:

Publisher: wayfire-package.yml on WayfireWM/pywayfire

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page