r/LinuxPorn • • 2d ago

Rust based wayland desktop shell for Mango / niri / Hyprland

Hey guys!

I'm just posting here to show the new shell that I have made using rust.

DISCLOSURE: The rust port for the shell was made using Claude. This project was originally based on quickshell.

Basically I previously built a QML based shell for myself and my girlfriend and it worked great on my niri setup I was using at the time. I then installed Mango to try this out but the shell was mostly borked on MangoWM, it constantly crashed and with blue light filter being handled by the shell made it that much worse as the color suddenly was all over the place. I tried a lot of things to try and fix it but at the end I just gave up. I already had bluelight filter for the shell written in rust, that gave me an idea of porting the entire thing over to rust instead of relying on quickshell.

Porting this to rust was the best decision as this now uses almost only 20% of the resources that quickshell was using as within rust I could break this down into small components and only run the modules when necessary rather than have the full shell running at all times like it did with quickshell.

If you guys want to try this out, check out the github repo https://github.com/Hellcat5011/prism

I have also updated on the github repo that this was made using Claude, so if you are uncomfortable with this then please ignore this.

I could use some feedback on how it works with Niri and Hyprland as well. I have included the keybind helper scripts within the project's deploy folder and you can use this.

Please let me know if you come across any bugs or if you have any suggestions or feedback to improve this.

EDIT: There is a new branch for openRC and loginctl. This branch no longer relies on systemd. I have not tested this as I use systemd, so if anyone is willing to test this out and share logs for any errors, I can work on those and finally merge this into the master branch.

Install instructions for this are in the repo under /docs/INSTALL.md. Please also look at the requirements in the docs to ensure smooth operation. If you encounter any issues, please open a new issue on the repo and please attach ~/.local/state/prism/prism.log file with it so it's easier to find and fix this.

296 Upvotes

48 comments sorted by

6

u/The_Prontonio_X 1d ago

This is great, tho I am using kde, and not as interested in ai stuff but you got some nice taste is design.👍

2

u/Hellcat5012 1d ago

Thanks, I appreciate that. :) 

2

u/The_Prontonio_X 1d ago

Can you tell me what each of the features are called, I new the ricing and don't know what I'm even looking for, stuff like that wallpaper thing or the setting thing on the right you opened, and general stuff like that🙏

3

u/Hellcat5012 1d ago

Almost all of what you see on screen is my shell itself. All the settings and notifications are all windows designed within the shell. I made these myself originally in quickshell but due to high system resource usage I ported this to rust using Claude.

If you're looking at getting into ricing you can look at other options as well. For a bar or a panel, you can use something like waybar. For an app launcher, you can look at rofi or fuzzel. For a notification center, I used to use swaync, for lockscreen I used to use hyprlock.

All of these need to be configured individually to your needs using their configuration files.

This is not possible on a full DE like KDE/Gnome because they come with their own inbuilt tools and it's designed around that. 

2

u/The_Prontonio_X 1d ago

Thanks for taking your time writing this, I appreciate it ☺️

2

u/Hellcat5012 1d ago

No problem, I started out exactly where you are right now. Started with Cinnamon then KDE and then into WM, using others dots and finally having my own dots. :) 

5

u/Unhappy-Salary8171 2d ago

That's great rice, it has some really good design ideas

3

u/Hellcat5012 2d ago

Thanks, man! If you want to try it out check out the repo and lemme know if you want me to add anything.

4

u/WatcherMage 2d ago

really clean and how lightweight is it

3

u/Hellcat5012 2d ago

It uses only 20% of the resources quickshell used. I can record and share the actual performance numbers once I get home.

3

u/WatcherMage 2d ago

good to know, awesome project btw

4

u/Hellcat5012 2d ago

Here's the performance numbers:

prism-ui (UI)- 0.07% CPU, 105.9 MiB
prismd (main process) - 0.00% CPU, 17.4 MiB
prism-phoned (KDE connect integration)- 0.00% CPU, 8.7 MiB.

The UI takes 105.9 MiB because the wallpaper is fully managed by this shell and it needs to load the wallpaper into memory, along with any icons and fonts used throughout the shell. If you use an external program like awww then this will be reduced further as the wallpaper will be loaded into memory by awww, then again, it would also consume about the same amount of memory as the image is still loaded.

This was tested on idle with just the desktop widgets running on the desktop.

2

u/WatcherMage 1d ago

thats crazy

2

u/Hellcat5012 1d ago

Yeah, right from when I started the rust port of this project I sort of focused solely on the performance of this shell. I removed some ideas that I had implemented because they had a performance impact. This is the final I arrived at.

1

u/verc_ 1d ago

Do you have a comparison for the quickshell version?

2

u/Hellcat5012 1d ago edited 1d ago

I had to retest this based on a backup I had made of the quickshell version, here's the outcome:

tested for 60s idle and then launcher x10, notification center x10, search x5, settings x3.

memory used: CPU - 525 MiB + 433 MiB, GPU: 25 MiB
that's close to a GiB of the RAM. compared to about 167 MiB for prism.

Mind you this is actually very different because with quickshell I used external progs to manage wallpaper, phone connect etc. All this is integrated into prism. so with QML it's almost 3x the ram of prism and 2x CPU usage.

hope this helps.

→ More replies (2)

3

u/Acrobatic-Current171 2d ago

Wallpapers please?

2

u/Hellcat5012 2d ago

Almost all the wallpapers are from https://wallhaven.cc and the rest are Pika OS wallpapers. I got them from this github repo: https://github.com/PikaOS-Linux/pkg-pika-wallpapers/blob/main/backgrounds/pika/guardian_of_the_beetroot_by_neytirix_ddgl0np.jpg

I can upload my wallpaper stack and share a link for you, but I have to warn you, there are quite a few and you may not like all of them. Lemme know if you need this, I'll share a link.

1

u/Acrobatic-Current171 2d ago

Please share it, thanks! Would love to see it all!

1

u/Hellcat5012 2d ago

Cool, I'll share the link once I get home.

3

u/romirroze 1d ago

now this looks better than those material ui slop rice everyone makes here

2

u/Hellcat5012 1d ago

Thanks! Honestly this is a project that has evolved over years from when I started with just waybar, rofi, etc, to quickshell and now here.

If you'd like to try it out and share any feedback I'd appreciate it. :)

3

u/ibnDawud 1d ago edited 1d ago

The LockScreen Ring theme is insane 🔥 Damn !
Keep up the good work brudah !

3

u/Hellcat5012 1d ago

Thanks! That's actually my favorite. I like the dots (Halftone) as well, the wallpaper in the video does not do justice to that.

1

u/ibnDawud 1d ago

can you fork swaylock to make it look like your ring theme ? I would be awesome

2

u/Hellcat5012 1d ago

This lockscreen is fully managed by the shell and is fully written in rust. It would be easier for me to just split the lockscreen part of this shell and just upload this as a separate project that could be used on any desktops, potentially.

1

u/ibnDawud 1d ago

just do it bro. I really wanna use it

2

u/Hellcat5012 1d ago

Cool, I'll give it a try and post this here so you can grab it then.

→ More replies (1)

2

u/maxymob 1d ago

I'm an ubuntu soyboy trying to figure out this ricing stuff, can someone attempt to explain what goes into creating such stylish custom desktop ?

3

u/Hellcat5012 1d ago

okay, so Ubuntu uses it's own DE (Desktop environment). This basically means that everything you need like the window manager, panels, file manager, etc. are inbuilt. Whereas what you see in most ricing situations is taking only a WM (window manager) like Hyprland, Niri, Mango, Sway, dwm, etc and then manually configuring everything else by yourself.

Basically a WM only controls how the window looks or behaves or is arranged on screen, from there you start editing the config files for the WM to make it behave the way you want it to like setting keybinds, etc.

There are various ways to make your desktop look beautiful, for example, some ricing setups use waybar for the panel, rofi / fuzzel for the app launcher, etc. You have to tweak the settings of all these apps to make it look the way you want it to. There's also quickshell which does amazing things when it comes to appearance and animations, this is what I based the project on originally, but this is too resource intensive. So I remade the same thing in rust instead of quickshell, so basically this same setup can be recreated to the most part in quickshell as well.

if configuring every little detail is too much work you can always get the dotfiles for existing setups if they are made public and use them.

I would encourage you to try it out. You can start with small tweaks here and there and evenutally before you know it you'll have a desktop tailored just right for your use case.

I feel like I rambled on a lot. But try researching this if you're interested, it's quite fun once you get the hang of it. :)

2

u/maxymob 1d ago

Thank you, I'm sensing there may be as many answers to that question as people in this hobby but mostly it seems revolves around shared building blocks so the complexity comes from combination of options to get to a specific composition rather that a super steep "rocket science"-like learning curve. Do they all run Arch ?

2

u/Hellcat5012 1d ago

That's accurate. It's sort of akin to Lego. The blocks are the same but how you arrange them can make all the difference. Its very easy to get a decent looking desktop with minimal effort using this, it's finetuning is a whole other beast.

Ricing isn't limited to arch, although a lot of people prefer arch seeing how minimal it is and how you can build on top and keep the resource utilization low. Also the attraction towards arch stems from other places as well like how this is a rolling release so there is no Arch version. Or for some people it's just having access to the AUR.

Ricing can be done on any distro regardless. I've personally seen some amazing rices on top of Fedora, base Debian.

2

u/Yemuyin 1d ago

systemctl --user enable --now prismd I don't use systemd

2

u/Hellcat5012 1d ago edited 1d ago

EDIT: This is now available as a branch for the repo.

1

u/semantixc 1d ago

How do the partial bars work?

1

u/Hellcat5012 1d ago

The partial bars / island style is only in the classic theme of the bar. This is because the classic theme does not show any notifications in the bar or have any animations / transitions built in. The classic theme is meant to be a minimal setup under all options like the bar, launcher and the lockscreen. The other 3 bars only have the fixed and floating settings.

1

u/NF-FLY 1d ago

This looks awesome can't wait to try it out

1

u/Hellcat5012 1d ago

That's awesome! Let me know if you encounter any edge cases so I can iron them out. :)

1

u/iHarryPotter178 2d ago

Labwc support please..

3

u/Hellcat5012 2d ago

I haven't used labwc before so this is not included. I'll test it out and integrate this. Most of the usage shouldn't be an issue but there are some cases for UI where the compositor functions are called so these need to be swapped out. I'll let you know when I integrate this.

3

u/iHarryPotter178 2d ago

Thanks... Keep up the good work.

1

u/Hellcat5012 2d ago

Thanks, I really appreciate that. :)

0

u/[deleted] 1d ago

[deleted] — view deleted comment

1

u/Hellcat5012 1d ago

Caution? For?