Comments (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 inassets
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 twoexport
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.
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)
- Icon for UEFI settings HOT 1
- Fedora Silverblue (propably also Kinoite) are not recognized and are without an icon HOT 9
- adding black color for icons
- Fedora 37 tried installing theme, but nothing happened HOT 1
- Please provide instructions how to use the flake.nix HOT 4
- [REQUEST] ChromeOS Icon HOT 5
- Red Hat Enterprise Linux icon is not showing
- no system option after install
- failed to backup grub file when reinstall
- OSTree file locations HOT 1
- the old background reappears for a few seconds HOT 1
- Don't use "clear" on the installation script. Use instead: `echo -e '\0033\0143'`
- Please Update Windows Icon
- Link to "Grub2 theme tutorial" in README.md is broken HOT 2
- Grub messed up after installing HOT 1
- How do I create the blurred like the background-whitesur.jpg for a custom background? HOT 1
- No text-aliasing
- My windows just disappear!
- Duplicates theme installed
- Don't touch /boot/efi/EFI/fedora/grub.cfg
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grub2-themes.