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 hosts 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
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-3.2.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

wayfire-3.2-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wayfire-3.2.tar.gz
Algorithm Hash digest
SHA256 dd8e2cfc0d39a4442edafe1557bedd2db04210400bf96d09c25c1aa051f53207
MD5 e3b54ab09994619c554aa77da63f6c14
BLAKE2b-256 393fce5e0ec2688e7b338b18deaca0b665158a613b0431c6be79162a0a698179

See more details on using hashes here.

Provenance

The following attestation bundles were made for wayfire-3.2.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-3.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for wayfire-3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7dc3ca3523738e1f1a388e11a20f045ec7a1762b3c3648eaaa3f6a319156065
MD5 65973b10095f2d80261fb14eddba9c0f
BLAKE2b-256 39cd771bbd3a36e7d6f75884711a22b4c072ac0ebc43ffb3ad4053e57ad160cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for wayfire-3.2-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page