Skip to main content

wlosd

An on-screen display for Wayland compositors.

You might also be interested in wledges which provides active edges for Wayland compositors.

Supported Desktops

Tested on Sway, but should work on all Wayland compositors that support the Layer Shell protocol. More precisely, it should work on all desktops supported by gtk4-layer-shell.

Installation

Dependencies:

Debian/Ubuntu:

sudo apt install libgirepository-1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0 libgtk4-layer-shell-dev
pip install pygobject

Fedora:

sudo dnf install gcc gobject-introspection-devel cairo-gobject-devel pkg-config python3-devel gtk4 gtk4-layer-shell-devel
pip install pygobject

Arch Linux:

sudo pacman -S python cairo pkgconf gobject-introspection gtk4 gcc gtk4-layer-shell
pip install pygobject

For other distributions, you will need:

Install wlosd:

From PyPi:

pip install wlosd

Or clone this repository.

Usage

wlosd reads commands from standard input. For example, run in a terminal:

wlosd
show --end-mark END test
Some text.
More text.
END

(don't kill the process yet)

This should display the two lines before END in the centre of the currently focused display, on top of all other windows. The text is transparent to all input events. If show is called with the --markup option, the text is interpreted as Pango markup ('<', '>' and '&' must be escaped as '&lt;', '&gt;', and '&amp;'). The --css command line argument (e.g. wlosd --css style.css) can be used to pass a GTK4 style sheet (see style.css for example, and overview and properties for documentation).

To hide the text:

hide test

To see all available commands:

help

To quit:

quit

A more useful way to run wlosd would be to put something along the following lines somewhere in your startup scripts:

rm -f "${XDG_RUNTIME_DIR}/wlosdpipe"
mkfifo "${XDG_RUNTIME_DIR}/wlosdpipe"
tail -fn+1 "${XDG_RUNTIME_DIR}/wlosdpipe" | wlosd &

And send commands to wlosd like this:

printf -- 'show --end-mark END test\nSome text.\nEND\n' > "${XDG_RUNTIME_DIR}/wlosdpipe"

License

MIT, see LICENSE

Metadata

Release files for wlosd 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wlosd 1.1.1
File Size Uploaded Provenance Actions
wlosd-1.1.1.tar.gz 9.4 kB Without provenance Details for wlosd-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wlosd 1.1.1
File Interpreter ABI Platform Actions
wlosd-1.1.1-py3-none-any.whl Python 3 none any Details for wlosd-1.1.1-py3-none-any.whl

Total release size: 17.9 kB

Release files / wlosd-1.1.1.tar.gz

Download URL wlosd-1.1.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6aaa6cac1b4266b735fe7c914df024e47e26b168c795875ee0e6f3b008e9bd7a
BLAKE2b-256 checksum
How to use checksums
55a42a9e8668d22fe6b4685ba1226118c1f36b2a3139d6b8219e44a5931b9cd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / wlosd-1.1.1-py3-none-any.whl

Download URL wlosd-1.1.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f9623bff16b0f0aa5fdb2fe391d5f85779268cdfb48f2d5c6a0ebadc5be5b4f
BLAKE2b-256 checksum
How to use checksums
d14c20d80ce10c96bf69c5f9bd4f38d77b0f7b90ac53b73055538083c6b08c8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for wlosd 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page