adi1090x / plymouth-themes

A huge collection (80+) of plymouth themes ported from android bootanimations
GNU General Public License v3.0
1.72k stars 114 forks source link

Random theme each boot? #23

Closed EricAndrechek closed 1 year ago

EricAndrechek commented 2 years ago

Would it be possible to write up a script that would run on computer boot to change the theme to something random so that next time you boot up your computer it was a different random theme? Love this project though, super cool stuff!

Tutul- commented 1 year ago

Well it would be really easy to write such a script but it may be susceptible to produce unbootable system if the system fail or reboot when the initramfs is rebuilding (increase the number of time you do it, increase the risk of that happening, specially if it's in the background)

In any case you just need to: 1) get the list of themes you can use 1.a) either by listing all plymouth themes with its command 1.b) or by reading a conf file (let you avoid using the default one) 2) use a random funtion (python or bash or whatever) to get the index to select from the list you just created 3) tell plymouth to switch to that theme and rebuild initramfs

NB: when you will shutdown/reboot the system you will already see the new theme.

adi1090x commented 1 year ago

Don't do it!

IPlayZed commented 9 months ago

I think this is a core Plymouth feature request, not a theme specific thing.

makingglitches commented 9 months ago

@EricAndrechek I created one for you on their project page.

IPlayZed commented 9 months ago

@makingglitches can you link the issue here please?

makingglitches commented 9 months ago

https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/226