Script to have infinite rainbow on the power LED?

Hi!

I want to have my power LED have an infinite rainbow loop, but I don’t know how to achieve it.
I’ve looked at some other LED script, but I don’t understand much of it.

Even though I use Linux on a daily basis, I’m not that much into the way bash scripting works, if that’s even needed?
Anyways, somebody who can show me in the right direction to achieve this or if it’s really simple, make the script needed?

Thanks! :slight_smile:

i=$color; while sleep 0.01; do rainbow pwr enable $(printf %06x $i); i="$(nextcolor $i)"; done

Only tricky thing is to define how to get next color of the rainbow :slight_smile: Ideally in simple math formula.