Lxtharia / minegrub-theme

A Grub Theme in the style of Minecraft!
MIT License
3.22k stars 41 forks source link
grub-theme grub-themes grub2 grub2-theme grub2-themes minecraft

The Minecraft Grub Theme Trio:

> Minecraft Main Menu < Minecraft World Selection Menu Using both themes together

There is also a Spanish translation now!

Minegrub

A Grub Theme in the style of Minecraft!

Minegrub Preview "Screenshot"

Installation

Note: grub vs grub2

  • If you have a /boot/grub2 folder instead of a /boot/grub folder , you need to adjust the file paths mentioned here and in the minegrub-update.service file
  • Also if you're not sure, run grub-mkconfig -V to check if you have grub version 2 (you should have)

Manually

NixOS module (flake)

This is a minimal example ```nix # flake.nix { inputs.minegrub-theme.url = "github:Lxtharia/minegrub-theme"; # ... outputs = {nixpkgs, ...} @ inputs: { nixosConfigurations.HOSTNAME = nixpkgs.lib.nixosSystem { modules = [ ./configuration.nix inputs.minegrub-theme.nixosModules.default ]; }; } } # configuration.nix { pkgs, ... }: { boot.loader.grub = { minegrub-theme = { enable = true; splash = "100% Flakes!"; background = "background_options/1.8 - [Classic Minecraft].png"; boot-options-count = 4; }; # ... }; } ```

Configuration

Adjusting for a different amount of boot options:

Random splash texts and accurate "x Packages Installed" text!

The update_theme.py script chooses a random line from assets/splashes.txt and generates and replaces the logo.png which holds the splash text, as well as updates the amount of packages currently installed. It also randomly chooses a file from backgrounds/ (ignoring hidden files beginning with a dot) as the background image.

Update splash and "Packages Installed"...

...manually

...with init-d (SysVinit)

...with systemd

Notes:

Thanks to

Font downloaded from https://www.fontspace.com/minecraft-font-f28180 and used for non commercial use.