Generates a theme for the rEFInd boot manager from any RGB color.
Created entirely for my own use and amusement and should only be used at your own risk!
Most icons where taken from LightAir's darkmini theme with added cli versions inspired by PillTimes's rEFInd-minimal-dark theme.
-
Clone this repository into a directory in your home folder or a similar location.
-
Edit
createtheme.sh
and configure as you wish, Most important is to set thethemename
variable with your desired theme name and thenewbasecolor
variable which will determine the color of the theme. (if you just want to use the example theme skip to step...) -
Make sure packages for bc, imagemagick and librsvg are installed. On arch
pacman -S bc imagemagick librsvg
. -
When you're satisfied run the script from within the
refind-themegen
directory./createtheme.sh
. -
There should now be a directory with the generated theme in the same directory as the script. Examine the theme.conf file within and make sure everything looks right and make any other adjustments you want.
-
Locate your refind directory, should most likely be
/boot/EFI/refind
. If it is somewhere else you'll have to modify the commands in the following steps. -
Create a themes directory in your refind directory if one does not already exists and copy the generated theme or the example theme
refind-forrest
to that directory (you'll need to be root or use sudo)mkdir /boot/EFI/refind/themes
cp -r themename /boot/EFI/refind/themes/
-
Add
include themes/themename/theme.conf
to the end of/boot/EFI/refind/refind.conf
, if your using manual menu entries make sure to point to the correct icon.
menuentry "Arch" {
icon /EFI/refind/themes/themename/icons/os_arch.png
loader /vmlinuz-linux
initrd /initramfs-linux.img
options YOUR BOOT OPTIONS HERE
disabled
}
menuentry "Arch - CLI" {
icon /EFI/refind/themes/themename/icons/os_arch_cli.png
loader /vmlinuz-linux
initrd /initramfs-linux.img
options YOUR BOOT OPTIONS HERE
disabled
}
Auto detected entries should work but the icon will fallback to the default rEFInd icon if they don't exist in the theme.
The example theme refind-forrest, created with newbasecolor=5d8147