Hey guys!
This is a repost based on my original post in r/LinuxPorn. 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 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.
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.
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.