Posted by attogram 10/28/2025
Did you see the library of viz? https://github.com/attogram/bash-screensavers/blob/main/libr...
My favourite API: lov_die_with_honor()
# This version is optimized for speed by:
# 1. Using direct ANSI escape codes instead of forking `tput` for every update.A friend of mine fancied the following when making an infinite loop in C:
#define MONEY 1
#define POWER 1
while (MONEY == POWER)
{
...
}(thought I'd share that since its raison d'être was to put Asciiquarium there :))
OLEDs can still suffer from burn-in, but it's also just easier to have them... turn off...
Do you know if this supports any DE (or no DE)? Or is it strictly for KDE Plasma?
When it comes to wallpapers, you could do a similar trick on X11 DEs by putting it onto the root window (with a tool like xwinwrap) and on Wayland DEs that support layer-shell (with a tool like windowtolayer). I'm not aware of screen lockers that do something like that, but you could always write your own one.
Yeah, I've used xwinwrap before, but am lost on Wayland. I'll look into windowtolayer, thanks. I'd rather not have to write this myself...
[1]: https://en.wikipedia.org/wiki/ANSI_escape_code#Control_Seque...
Screensavers are a lost art. I still enjoy them, but at some point we just gave up on them. In the era of CRTs they had a practical purpose (they're screen savers, after all), but modern OLED displays also suffer from burn-in for which screensavers would be useful. My enjoyment is purely aesthetic, though. Sometimes I just want to have something pleasing to glance at in the background, instead of a black screen.
Nowadays most operating systems and desktop environments don't even support them. The state of the art on Linux still seems to be `xscreensaver`, which does have many great ones, but the collection is static, and most of it is visually stuck in the 90s. I wouldn't even try getting it to run on Wayland, and when I last looked into it, it required some hacks and 3rd-party tools.
Also, I've always found the feature of screen locking and screen saving to be orthogonal. Often I want to see pretty graphics without locking my screen, and viceversa.
[0] https://github.com/attogram/bash-screensavers/blob/main/AGEN...
Also, found one of the easter eggs!
For folks curious about the rm -rf see https://github.com/attogram/bash-screensavers/blob/main/gall... line 339