Jump to content
Search

The new Ubuntu Wiki is live. Legacy content may be unavailable and page links may have changed. Read the announcement on Discourse.

Change text colour of GRUB menu

From Ubuntu Wiki

Notes:

  • Colors are always specified as foreground/background separated by a forward slash (e.g.light-gray/black)
  • A black background often acts as transparent if a background image is active
  • Standard Colors (Available for both foreground and background)
black blue green cyan red magenta brown light-gray
  • Additional Colors (Available for the foreground/text)
dark-gray light-blue light-green light-cyan light-red light-magenta yellow white

1. Create a custom color file

Open a terminal Ctrl Alt t and enter:

sudo nano /etc/grub.d/06_custom_colors

Type your password, followed by Enter


Add the following lines (using your preferred colors from the lists above)

echo "set menu_color_normal=cyan/black"
echo "set menu_color_highlight=white/blue"

Ctrl o then Enter to save

Ctrl x to exit

The above text will instruct GRUB to display:-

Cyan text with black background

White text with blue highlight for the selected menu item

2. Make the script executable

sudo chmod +x /etc/grub.d/06_custom_colors

Type your password, followed by Enter


Regenerate the GRUB configuration file

sudo update-grub

Close the terminal and reboot to see your modified GRUB menu