Lxtharia / minegrub-theme

A Grub Theme in the style of Minecraft!
MIT License
3.28k stars 44 forks source link

Set a random background on each boot up #71

Closed MavikBow closed 2 weeks ago

MavikBow commented 2 months ago

Should that be done via some sort of script that'd be launched after every boot, or are there any other options?

Lxtharia commented 2 months ago

Just like the splash text, randomizing the background is done by the update_theme script. It's a python script that is supposed to be run after every boot. Most distros can use the provided systemd service, but you can also do it with cron I think. The script chooses a random background from all files located in /boot/grub/themes/minegrub/backgrounds. Files starting with an underscore a dot are ignored. Hope this answers the question? :)

Samsu-F commented 2 months ago

Files starting with an underscore are ignored

Small correction: Not files starting with an underscore, but hidden files (i.e. starting with a dot) are ignored :)

Lxtharia commented 2 months ago

Ah, thanks!

No idea where I got the underscores idea from but i was too lazy too check 😄

Samsu-F commented 2 months ago

Ignoring files starting with an underscore was the first version (see commit 2a37a9d) but it was changed in commit 9a8b710. I guess that's where you got it from :)

Lxtharia commented 2 weeks ago

Closing this