this post was submitted on 19 May 2026
2 points (62.5% liked)

Rust

8034 readers
37 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

Is it possible to create hyprland ui components (like topbar, notification panel) using slint+rust? Has anyone tried this?

top 1 comments
sorted by: hot top controversial new old
[–] INeedMana@piefed.zip 4 points 1 week ago* (last edited 1 week ago)

I've never done something similar in Wayland but judging by how Waybar is setting up it's window I guess it should be doable with backend-winit-wayland
https://docs.rs/winit/latest/winit/#building-windows

EDIT: actually, you might be a bit too early for using winit for that. But from the surrounding discussions it seems that even so, that should still be doable by interacting with wlr-layer-shell directly

EDIT2: hold on, I actually have done something similar in Wayland. Just in C++ and GTK. So if instead of using slint you could use GTK4, I guess https://github.com/wmww/gtk4-layer-shell would be the way to get it working