How to install custom grub-theme-manjaro?

I have this custom GRUB theme based on grub-theme-manjaro designed for use in Arch Linux but i dont know how to install it because i just searched grub-theme-manjaro, downloaded the source code from the GitLab, changed the backgrounds, changed the icons from manjaro to arch, and now i have no idea how to even install it. My recreation is at grub-theme-arch by pixrobot on GitHub. The original is at gitlab . manjaro . org in /artwork/branding/grub-theme.

Hi @pixrobot8, and welcome!

I’ve never done this, but considering:

$ pamac list --files grub-theme-manjaro

It would seem you have to create a directory for it in /usr/share/grub/themes/:

sudo mkdir /usr/share/grub/themes/<newDirectory>/

Where <newDirectory> is the name of the directory you’re creating for the theme.

It seems the theme itself is specified in /usr/share/grub/themes/<newDirectory>/theme.txt:

title-text: ""
title-font: "DejaVu Sans Regular 48"
message-font: "Terminus 16"
message-color: "#7f8c8d"
message-bg-color: "#4d4d4d"
desktop-color: "#24282c"
desktop-image: "background.png"
terminal-font: "Terminus 14"
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"

# Logo image
+ image {
	left = 30%-250
	top = 10%-30
    file = "logo.png"

+ boot_menu {
    left = 15%
    #width = 250
    width = 70%
    #top = 50%-125
    #height = 400
    top = 30%
    height = 44%
    item_height = 30
    item_padding = 5
    icon_width = 32
    icon_height = 32
    item_icon_space = 20
    item_spacing = 5
    item_font =  "Terminus 16"
    item_color = "#cccccc"
    #item_color = "#FFA2A2"
    selected_item_font = "Terminus 16"
    selected_item_color = "#1ABB9B"
    selected_item_pixmap_style = "select_*.png"
    #menu_pixmap_style = "menu_*.png"

+ progress_bar {
    id = "__timeout__"
    left = 50%-125
    top = 70%
    width = 250
    height = 20
    show_text = true
    font = "Terminus 14"
    text_color = "#ffffff"
    align = "center"
    bar_style = "progress_bar2_*.png"

+ hbox {
    left = 50%-250
    top = 80%
    width = 500
    #+ label { width = 250 height = 20 align = "center" color = "#ffffff" font = "Terminus 16" text = "[↵] Boot selected OS" }
    #+ label { width = 250 height = 20 align = "center" color = "#ffffff" font = "Terminus 16" text = "[↑ and ↓ Key] Navigation" }
    + label { width = 250 height = 20 align = "center" color = "#ffffff" font = "Terminus 16" text = "E = Edit Boot Options" }
    + label { width = 250 height = 20 align = "center" color = "#ffffff" font = "Terminus 16" text = "C = GRUB Commandline" }

So obviously has to be adapted accordingly.

Hope this helps!

Thank you so much! Ill try to do what you recommended!

But how do i apply the theme?

You’d have to change the value in /etc/default/grub:


Thanks for the help!

1 Like

Just a tip: this works extremely well, and is gorgeous:

I use it myself even.

Ok, now i have changed GRUB_THEME to link to my theme.txt. Do i have to refresh something to apply it?

I think you have to reinstall grub:

The commands for that are in there.

Do i just have to run sudo pacman -R grub and then run sudo pacman -S grub?

Not AFAIK, no.

Then how is it that when you install grub-theme-manjaro running pamac install grub-theme-manjaro that it applies immediately?

I am not a total newbie to linux, i just dont do stuff with GRUB often.

That happens when grub is reinstalled as in the link I provided.

Cant i just reinstall grub and just run os-prober?

No, it has to be reinstalled according to the link, AFAIK. About OS-prober, :man_shrugging: I don’t use it since I don’t have Windows on my machine, only Manjaro.

Well i dualboot windows and linux because god dang you dont know how many times i have switched between linux and windows. Ill try to do what the link says.

GRUB Reinstalled. Lets test it.

Oh god.

The arch logo is literially like stretched out on the whole screen. Try installing and trying the theme out for yourself. You’ll see what i mean. Uhh, any way to fix this?

Unfortunaeky, no since, as I mentioned:

However, I’m pretty sure if you apply a new theme as per the link I sent you, you can get something…better?..different?..else.

Fine, ill try it.

Can you check if this installation guide i put in my GitHub is correct? Create a new folder in /usr/share/grub/themes/ named arch.
Inside the terminal, run:
cd /usr/share/grub/themes/
sudo mkdir arch
Claim ownership of the newly created folder so you can copy over the theme over using a GUI
Inside the terminal, run:
sudo chown [USERNAME HERE] arch
Replace [USERNAME HERE] with the user you are logged in as so you can use the GUI to copy over the files, which will be important later.
Copy over the theme
On the main page of the repository, click on the green “Code” button and then click on the “Download ZIP” button.
Extract the contents of the zip file, and then search for an arch folder inside the extracted ZIP file.
Copy over the contents of the arch folder inside the extracted zip file into /usr/share/grub/themes/arch/
Select the theme as the main one
Using a text editor, change the line that starts with GRUB_THEME inside of /etc/default/grub to the following: GRUB_THEME=“/usr/share/grub/themes/arch/theme.txt”
Refresh GRUB
Step 1. Reinstall GRUB with your package manager.
For BIOS Systems
In the terminal, run:
sudo grub-install --force --target=i386-pc --recheck --boot-directory=/boot /dev/sdy
sudo grub-mkconfig -o /boot/grub/grub.cfg
For EFI Systems
In the terminal, run:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=[BOOTLOADER-ID] --recheck
! WARNING ! Replace [BOOTLOADER-ID] with the short name of your distribution! For example, manjaro, debian, etc.
sudo grub-mkconfig -o /boot/grub/grub.cfg
Restart your machine. You should see the GRUB theme.

This can be changed to:

sudo chown $USER arch

Then replacing it manually isn’t neccessary anymore.

And if it’s properly markdown-formatted it should be good. Example:



instead of:



What about the Bootloader-Id thingy?

I don’t really, really know what you mean with that. But if my guess is correct and you want to know how to type it, I always do it something like:

To create a directory:

mkdir </path/to/create>

_Where_ `</path/to/create>` _is the path of the directory that should be created._

Which will then render like:

To create a directory:

mkdir </path/to/create>

Where </path/to/create> is the path of the directory that should be created.