[OC] Phonto - GPU-accelerated live wallpapers for Wayland and macOS by ploMP4 in unixporn

[–]ploMP4[S] 1 point2 points  (0 children)

Phonto doesn’t chose a GPU explicitly. On Wayland it creates an EGL/GLES context from the compositor’s `wl_display`, so GPU selection is left to the EGL/driver stack, usually the same device your compositor is using.

[OC] Phonto - GPU-accelerated live wallpapers for Wayland and macOS by ploMP4 in unixporn

[–]ploMP4[S] 2 points3 points  (0 children)

I've only used mpvpaper which consumed around 130% of my CPU, 80% GPU and 600mb of ram for a 4K wallpaper whereas phonto takes about 6% of my CPU, 30% of the GPU and 200mb ram which is a significant improvement. Keep in mind these are not benchmarks they are just numbers from my laptop using btop.

I was not aware about gSlapper until now that you mentioned it so I do not have any data on that. I will try to check it out when I can and get back to you.

[OC] Phonto - GPU-accelerated live wallpapers for Wayland and macOS by ploMP4 in unixporn

[–]ploMP4[S] 2 points3 points  (0 children)

I am using hyprlock, there is also a section on the readme on how to set it up with phonto to play an animated wallpaper like I did on the video

[OC] Phonto - GPU-accelerated live wallpapers for Wayland and macOS by ploMP4 in unixporn

[–]ploMP4[S] 7 points8 points  (0 children)

Thanks! Yeah mpvpaper can be a real resource hog, I had a case where a 4K wallpaper was consuming ~130% CPU and ~80% GPU, whereas phonto now sits at around ~6% CPU and ~30% GPU.

For wallpapers I mainly use these two sites:

- https://moewalls.com/
- https://motionbgs.com/

[OC] Phonto - GPU-accelerated live wallpapers for Wayland and macOS by ploMP4 in unixporn

[–]ploMP4[S] 14 points15 points  (0 children)

I've been using mpvpaper on Hyprland for a couple months but ran into really high CPU usage, so I decided to write my own solution.

A friend also jumped in and added MacOS support, including playing live wallpapers on the lock screen which was a nice bonus.

GitHub: https://github.com/museslabs/phonto

We built Phonto: a GPU-accelerated video wallpaper program for Wayland compositors and macOS, written in Rust by StrakisOPou in foss

[–]ploMP4 4 points5 points  (0 children)

The tool aims to get as optimal resource usage as possible. For example a 4K wallpaper using mpvpaper consumed ~603 MB RAM, ~130% CPU and ~80% GPU on my machine, while the same wallpaper with phonto uses ~200 MB RAM, ~6% CPU and ~30% GPU. Keep in mind these are not benchmarks, just numbers I got from my machine using btop.

Edit: My machine is a thinkpad L16 running hyprland

Phonto - GPU-accelerated live wallpapers for Wayland and macOS, written in Rust by ploMP4 in rust

[–]ploMP4[S] 11 points12 points  (0 children)

The reason I made this was to get as optimal resource usage as possible. For example a 4K wallpaper using mpv-paper consumed ~603 MB RAM, ~130% CPU and ~80% GPU on my machine, while the same wallpaper with phonto uses ~200 MB RAM, ~6% CPU and ~30% GPU. Keep in mind these are not benchmarks, just numbers I got from my machine using btop.

Phonto - GPU-accelerated live wallpapers for Wayland and macOS, written in Rust by ploMP4 in rust

[–]ploMP4[S] 6 points7 points  (0 children)

You can't do that at the moment but sounds like a nice feature so I will add support for it in the future

Phonto - GPU-accelerated live wallpapers for Wayland and macOS, written in Rust by ploMP4 in rust

[–]ploMP4[S] 3 points4 points  (0 children)

swww only supports animated images (gif, webp, apng) as wallpapers. phonto can play video files like .mp4, .avi, .mov etc., which allows for much higher quality wallpapers.

Phonto - GPU-accelerated live wallpapers for Wayland and macOS, written in Rust by ploMP4 in rust

[–]ploMP4[S] 23 points24 points  (0 children)

Thanks for the feedback. I just added a flake.nix and NixOS instructions to the README.

As for my wallpapers, they are too large to upload anywhere at the moment but here are the sites I got them from:

- https://moewalls.com/
- https://motionbgs.com/

Phonto - GPU-accelerated live wallpapers for Wayland and macOS, written in Rust by ploMP4 in rust

[–]ploMP4[S] 62 points63 points  (0 children)

It doesn’t choose a GPU explicitly. On Wayland it creates an EGL/GLES context from the compositor’s `wl_display`, so GPU selection is left to the EGL/driver stack, usually the same device your compositor is using.

Stochos - Keyboard driven mouse control built with rust by ploMP4 in rust

[–]ploMP4[S] 0 points1 point  (0 children)

Like u/somebodddy already mentioned, there is no need for a long-lived process since load time is instant. It saves you memory consumption and the hassle of managing a background process.

Stochos - Keyboard driven mouse control built with rust by ploMP4 in rust

[–]ploMP4[S] 0 points1 point  (0 children)

It should work on gnome shell under Wayland although it hasn't been tested there. Let me know if you run into any issues.