Live data from Hacker News

Show HN: High performance X11 animated wallpapers

github.com

1–10 of 70 posts

Re: Show HN: High performance X11 animated wallpapers

#2
So the animated wallpaper scene on linux is pretty bizarre. There are some popular methods out there like calling `feh --fill-bg` continuously in a bash loop but it sends your CPU usage to an astronomical 40% which drains the laptop battery pretty quickly. I couldn't find a reasonable animated desktop wallpaper setter, so I wrote a little utility in 150 lines or so in C that I call from .xinitrc to randomly pick a fairly unobtrusive desktop scene when I startx.

Quick youtube showcase: https://www.youtube.com/watch?v=6ZTiA885bWM

Re: Show HN: High performance X11 animated wallpapers

#3
post #2

So the animated wallpaper scene on linux is pretty bizarre. There are some popular methods out there like calling `feh --fill-bg` continuously in a bash loop but it sends your CPU usage to an astronomical 40% which drains the laptop battery pretty quickly. I couldn't find a reasonable animated desktop wallpaper setter, so I wrote a little utility in 150 lines or so in C that I call from .xinitrc to randomly pick a fa…

Fantastic work!

Re: Show HN: High performance X11 animated wallpapers

#7

Just fyi, I think SDL_LoadBMP relies on sdl2_image; you may want to note that as a dependency.

I believe BMP loading is included into the core SDL2 library, but not other formats, which SDL_image remedies. Here is SDL_Surface.h. SDL_LoadBMP is just a macro using SDL_RWFromFile.

https://github.com/SDL-mirror/SDL/blob/master/include/SDL_su...

Re: Show HN: High performance X11 animated wallpapers

#8
post #2

So the animated wallpaper scene on linux is pretty bizarre. There are some popular methods out there like calling `feh --fill-bg` continuously in a bash loop but it sends your CPU usage to an astronomical 40% which drains the laptop battery pretty quickly. I couldn't find a reasonable animated desktop wallpaper setter, so I wrote a little utility in 150 lines or so in C that I call from .xinitrc to randomly pick a fa…

Really it should be something built in to the DE. You need it to stop rendering when the background is covered.

Re: Show HN: High performance X11 animated wallpapers

#9
post #2

So the animated wallpaper scene on linux is pretty bizarre. There are some popular methods out there like calling `feh --fill-bg` continuously in a bash loop but it sends your CPU usage to an astronomical 40% which drains the laptop battery pretty quickly. I couldn't find a reasonable animated desktop wallpaper setter, so I wrote a little utility in 150 lines or so in C that I call from .xinitrc to randomly pick a fa…

Really it should be something built in to the DE. You need it to stop rendering when the background is covered.

You can accomplish this with straight X11, no need for the DE to be aware of it.

Re: Show HN: High performance X11 animated wallpapers

#10
post #2

So the animated wallpaper scene on linux is pretty bizarre. There are some popular methods out there like calling `feh --fill-bg` continuously in a bash loop but it sends your CPU usage to an astronomical 40% which drains the laptop battery pretty quickly. I couldn't find a reasonable animated desktop wallpaper setter, so I wrote a little utility in 150 lines or so in C that I call from .xinitrc to randomly pick a fa…

[deleted]
Post reply on HN