Smithay/smithay

Rust

A smithy for rusty wayland compositors

wayland-compositorrustwayland
Star 增长趋势
Star
3.2k
Forks
372
周增长
+26
Issues
166
1k2k3k
2017年2月2020年4月2023年6月2026年9月
制品库crates.io
README

Smithay

Crates.io docs.rs CI Matrix IRC

A smithy for rusty Wayland compositors

Goals

Smithay aims to provide building blocks to create Wayland compositors in Rust. While not being a full-blown compositor, it'll provide objects and interfaces implementing common functionalities that pretty much any compositor will need, in a generic fashion.

It supports the core Wayland protocols, the official protocol extensions, and some external extensions, such as those made by and for wlroots and KDE.

Also:

  • Documented: Smithay strives to maintain clear and detailed documentation of its API and functionalities. Compiled documentation is available on docs.rs for released versions, and here for the master branch.
  • Safety: Smithay aims to be memory-safe and reliable, thanks to Rust.
  • Modularity: Smithay is not a framework and does not impose constraints. You are never required to use components you don’t need.
  • High-level: You should not have to worry about gory low-level stuff (but Smithay won't stop you if you really want to dive into it).

Getting started

If you want to learn how to build a compositor with Smithay, the best place to start is the getting started guide.

Anvil

Smithay as a compositor library has its own sample compositor: anvil.

To get information about it and how you can run it, check out the anvil README

Other compositors that use Smithay

  • Cosmic: Next-generation Cosmic desktop environment
  • Catacomb: A Wayland Mobile Compositor
  • emskin: A nested Wayland compositor for embedding any app inside Emacs
  • MagmaWM: A versatile and customizable Wayland Compositor
  • Niri: A scrollable-tiling Wayland compositor
  • Strata: A cutting-edge, robust and sleek Wayland compositor
  • Pinnacle: A WIP Wayland compositor, inspired by AwesomeWM
  • Sudbury: Compositor designed for ChromeOS
  • wprs: Like xpra, but for Wayland, and written in Rust.
  • Local Desktop: An Android app for running GUI Linux via PRoot and Wayland.
  • Otto: A gesture-driven stacking compositor.
  • DriftWM: A trackpad-first infinite canvas Wayland compositor.

System Dependencies

(This list can depend on the features you enable)

  • libwayland
  • libxkbcommon
  • libudev
  • libinput
  • libgbm
  • libseat
  • xwayland

Contact us

If you have questions or want to discuss the project with us, our main chatroom is on Matrix: #smithay:matrix.org.

Contributing

General notes on contributing to Smithay can be found here.

Please note that to submit code to Smithay, you must agree to our Developer Certificate of Origin.

If you are used to using generative AI, please ensure you read our Policy before starting.

相关仓库
hyprwm/Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.

C++BSD 3-Clause "New" or "Revised" Licensewaylandwayland-compositor
hypr.land
38.5k2k
niri-wm/niri

A scrollable-tiling Wayland compositor.

Rustcrates.ioGNU General Public License v3.0rustsmithay
niri-wm.github.io/niri/
27.6k1.1k
mmulet/term.everything

Run any GUI app in the terminal❗

GoGo ModulescliGNU Affero General Public License v3.0alacrittycli
8.1k194
qtile/qtile

:cookie: A full-featured, hackable tiling window manager written and configured in Python (X11 + Wayland)

PythonPyPIMIT Licenseqtilewindow-manager
qtile.org
5.3k732
riverwm/river

[mirror] A non-monolithic Wayland compositor

Zigwaylandwayland-compositor
codeberg.org/river/river
4.3k169
mangowm/mango

Practical and Powerful wayland compositor (dwm but wayland)

COthercompositorwayland
mangowm.github.io
3.6k233
WayfireWM/wayfire

A modular and extensible wayland compositor

C++MIT Licensewayland-compositorwindow-manager
wayfire.org
3k236
EVV1E/waylandcraft

Wayland Compositor in Minecraft

JavaMavenGNU General Public License v3.0minecraftwayland
2.8k64
labwc/labwc

A Wayland window-stacking compositor

CGNU General Public License v2.0wlrootswayland
labwc.github.io
2.8k262
swaywm/wlroots

A modular Wayland compositor library

ClibraryMIT Licensewayland-compositorwayland
gitlab.freedesktop.org/wlroots/wlroots/
2.3k350
natpen/awesome-wayland

A curated list of Wayland code and resources.

awesomeCreative Commons Zero v1.0 Universalwaylandsway
2.2k98
way-cooler/way-cooler

Wayland compositor for AwesomeWM

CMIT Licensetiling-windowwayland
way-cooler.org
2.1k75