Gtk Layer Shell

screenshot of Gtk Layer Shell

A library to create panels and other desktop components for Wayland using the Layer Shell protocol

Overview

GTK Layer Shell is a library that allows you to write GTK applications that use Layer Shell, a Wayland protocol for desktop shell components such as panels, notifications, and wallpapers. This library provides support for anchoring windows to corners or edges of the output and stretching them across the entire output. It is compatible with C, C++, and any language that supports GObject introspection files.

Features

  • Support for all Layer Shell features, including popups and popovers
  • Compatible with C, C++, and languages that support GObject introspection files
  • Works on Wayland and Wayland compositors that support the Layer Shell protocol
  • Supported on wlroots based compositors (such as Sway), KDE Plasma on Wayland, and Mir-based compositors
  • Not supported on Gnome-on-Wayland or any X11 desktop

Summary

GTK Layer Shell is a library that allows developers to write GTK applications that utilize the Layer Shell protocol for Wayland compositors. It provides support for various features including anchoring windows, stretching windows across the entire output, and handling popups and popovers. The library is compatible with C, C++, and languages that support GObject introspection files. It is supported on Wayland compositors such as Sway and KDE Plasma, but not on Gnome-on-Wayland or X11 desktops. Installing the library requires cloning the repository, installing the necessary dependencies, building the library, and installing it using Meson and Ninja.