119 words
1 minute
如何修改 Grub2主题?
2024-08-31

描述:

A pack of GRUB2 themes for Honkai: Star Rail

更多预览:

https://github.com/voidlhf/StarRailGrubThemes/tree/master/preview

The labels in the bottom right corner of the preview image will not be displayed in the theme file.

安装:
使用 Guinaifen 主题举例

  1. 复制 Guinaifen 到 grub 主题目录 sudo cp -r Guinaifen /usr/share/grub/themes

  2. 编辑grub文件 sudo vim /etc/default/grub

  3. 在底部添加以下内容

# 切记要禁用BLS
GRUB_ENABLE_BLSCFG=false
# grub 分辨率
GRUB_GFXMODE=1920x1080
# 保活
GRUB_GFXPAYLOAD_LINUX=keep
# 显卡输出
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_THEME="/usr/share/grub/themes/Guinaifen/theme.txt"
  1. 更新 grub
    sudo grub2-mkconfig -o /boot/grub2/grub.cfg

  2. Reboot the computer 重启电脑

星铁主题下载链接

https://www.gnome-look.org/p/2076542

如何修改 Grub2主题?
https://jianlongliu.github.io/posts/grub2-themes/
Author
Jianlong Liu
Published at
2024-08-31
License
CC BY-NC-SA 4.0