Giter Site home page Giter Site logo

Icon for folders about grub2-themes HOT 2 CLOSED

vinceliuice avatar vinceliuice commented on August 17, 2024 8
Icon for folders

from grub2-themes.

Comments (2)

KolinGuo avatar KolinGuo commented on August 17, 2024 2

I was searching on the web and found across this post relating to your issue.

Basically, update-grub uses the setup scripts inside folder /etc/grub.d to generate grub boot entries and grub themes use the class of each boot entry to associate an icon with it.
Therefore, you need to modify the setup scripts by adding a class to each boot entry whose icon you want to change.

For the "Advanced Options for Ubuntu" submenu you mentioned, you need to modify the script /etc/grub.d/10_linux (or other similar file names depending on your Linux distribution).

  • Locate the line echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
  • Modify it by adding ${CLASS}
    This will set this submenu to the same class of your Linux distribution, i.e. Ubuntu, Arch, etc.
    If you want a different icon, you should add --class [ICON_NAME] with an existing ICON_NAME in assets of this repo.
  • It should now looks like ... grub_quote)' ${CLASS} \$menuentry_id_option ...
    or ... grub_quote)' --class [ICON_NAME] \$menuentry_id_option ...

In my situation, I also want to change the "System Setup" boot entry icon. Below are steps to do so.

  • Use grub customizer to find the setup script that generates the boot entry. In my case, it's /etc/grub.d/30_uefi-firmware
  • Add a line CLASS="--class [ICON_NAME]" below the two export lines
  • Add the CLASS option in the menuentry line
    menuentry '$LABEL' ${CLASS} \$menuentry_id_option 'uefi-firmware'

After you finished modifying the classes, run the install.sh script of this repo to update the changes.

from grub2-themes.

NullDev avatar NullDev commented on August 17, 2024 1

Awesome! Thank you for the heads up :)
Ill try that out and will close this issue now, as it's not directly related to the theme.
Thank's for letting me know!

from grub2-themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.