A simplistic clean and minimal theme for rEFInd
NOTE: This is a fork to create a dark theme. However, the operating system logos haven’t been updated to constrast with a dark background. Windows and Ubuntu look fine, and many others should be fine too. Your results may vary.
(press F10 to take a screenshot at the boot screen, which then gets saved to /boot/efi
)
(Both installation methods assume you have installed rEFInd already.)
Just paste this command in your terminal:
bash <(curl -s https://raw.githubusercontent.com/1j01/refind-theme-regular/master/Install.sh)
-
Clone git repository to your
$HOME
directory.git clone https://github.com/1j01/refind-theme-regular.git
-
Locate refind directory under EFI partition. For most Linux based system is commonly
/boot/efi/EFI/refind/
. Copy theme (repo) directory to it.Important: Delete older installed versions of this theme before you proceed any further.
sudo rm -rf /boot/efi/EFI/refind/{regular-theme,refind-theme-regular}
sudo cp -r refind-theme-regular /boot/efi/EFI/refind/
-
Remove unused directories.
sudo rm -rf /boot/efi/EFI/refind/refind-theme-regular/{src,.git}
-
To adjust icon size and font size edit
theme.conf
.sudo nano /boot/efi/EFI/refind/refind-theme-regular/theme.conf
-
To enable the theme add
include refind-theme-regular/theme.conf
at the end ofrefind.conf
.sudo nano /boot/efi/EFI/refind/refind.conf
-
Fork this repository on github and then git clone your fork of this repository in your Linux system
-
The icons must be in svg format to allow easy generation of icons at any scale, canvas size must have width and height 128 px for OS icons, or 48 px for tool icons. The actual icon in the svg file should roughly fit in a square with a side of 96 px or 20 px (for OS and tool icons, respectively). Inkscape is a good program to create and work with svg files.
-
Copy/save the svg file to
/src/svg/big
or/src/svg/small
(depending on what is more appropriate) and rename them to be consistent with others. -
Install inkskape and optipng in your linux system as they will be needed to process the icons by the next step.
-
cd
into the./src
directory and run the script./render_bitmaps.sh
that will process the svg files and generate the png files at various sizes. -
Copy the png icons you generated from their
/src/bitmap
subfolder into the appropriate/icons
subfolders for their size by running./copy-bitmap.sh
-
Commit your changes, upload to your fork and then open a PR.
- Make it so the install script uses the repo its run from if it's in a cloned repo (instead of always cloning and using master)
- DRY up how the install script output works
- Use
git remote add boot /boot/efi/EFI/refind/refind-theme-regular
to manage installed copy in development (and maybe for the quick install as well) (then you can just push to it withgit push boot master
) - Use a
themes
dir inside therefind
dir - Make dark theme live alongside light, installable from the same repo (or in separate repos but sharing tooling?)
- Add an option for stretching all icons by some ratio to counteract a misproportioned boot screen (when your native screen resolution is unavailable)
- Make it clear from the directory structure what files are generated (at least via READMEs but maybe by naming the folder "built" or "derived" or "generated")