A simple script that picks a random theme from the /boot/grub/themes directory
for GRUB to use at boot.
All credit goes to elbachir-one for creating the original script and teaching me how to use and apply it! Also, thanks to everyone in the Arch Community Discord for helping me learn and fix issues with Arch Linux.
- Clone the repository and copy the script:
sudo cp grub_theme_changer.sh /usr/local/bin/random-grub-theme- Make the script executable:
sudo chmod +x /usr/local/bin/random-grub-theme- Copy the systemd service file:
sudo cp random-grub-theme.service /etc/systemd/system/random-grub-theme.service- Enable the service:
sudo systemctl enable random-grub-theme.service- Reboot your system.
After reboot, check the service status with:
systemctl status random-grub-theme.serviceYou should see that a random theme has been selected from the /boot/grub/themes folder.
You can add as many themes as you like — no need to reinstall or modify the script.