mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 09:05:35 +01:00
update
This commit is contained in:
parent
a65572ad93
commit
bc29529213
15
install.sh
15
install.sh
@ -123,17 +123,18 @@ install() {
|
||||
|
||||
# Edit grub config
|
||||
echo "GRUB_THEME=\"${THEME_DIR}/${name}/theme.txt\"" >> /etc/default/grub
|
||||
echo "GRUB_GFXMODE=auto" >> /etc/default/grub
|
||||
|
||||
# Make sure set the right resolution for grub
|
||||
# if [[ ${screen} == '4k' ]]; then
|
||||
# echo "GRUB_GFXMODE=3840x2160x32" >> /etc/default/grub
|
||||
# elif [[ ${screen} == '2k' ]]; then
|
||||
# echo "GRUB_GFXMODE=2560x1440x32" >> /etc/default/grub
|
||||
# fi
|
||||
if [[ ${screen} == '1080p' ]]; then
|
||||
echo "GRUB_GFXMODE=1920x1080,auto" >> /etc/default/grub
|
||||
elif [[ ${screen} == '4k' ]]; then
|
||||
echo "GRUB_GFXMODE=3840x2160,auto" >> /etc/default/grub
|
||||
elif [[ ${screen} == '2k' ]]; then
|
||||
echo "GRUB_GFXMODE=2560x1440,auto" >> /etc/default/grub
|
||||
fi
|
||||
|
||||
# Update grub config
|
||||
prompt -i "\n Updating grub config..."
|
||||
prompt -i "\n Updating grub config...\n"
|
||||
|
||||
updating_grub
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user