mirror of
https://github.com/vhaudiquet/mymachine.git
synced 2025-12-18 20:16:05 +00:00
Added grub2 theme installation
This commit is contained in:
22
mymachine.sh
22
mymachine.sh
@@ -185,15 +185,23 @@ echo "Installing dotfiles..."
|
|||||||
cp -r --update=none ${script_dir}/dotfiles/. /home/${USERNAME}/
|
cp -r --update=none ${script_dir}/dotfiles/. /home/${USERNAME}/
|
||||||
cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config
|
cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config
|
||||||
|
|
||||||
# TODO: Setup GRUB theme
|
# Setup GRUB theme
|
||||||
echo "Setting up GRUB theme..."
|
echo "Setting up GRUB theme..."
|
||||||
# $YCMD | pacman -S grub-theme-vimix
|
git clone https://github.com/vinceliuice/grub2-themes >/dev/null 2>&1
|
||||||
# sed -i 's/#GRUB_THEME=\"\/path\/to\/gfxtheme\"/GRUB_THEME=\"\/usr\/share\/grub\/themes\/Vimix\/theme.txt\"/' /etc/default/grub
|
if [ $? -ne 0 ]; then
|
||||||
# if [ $? -ne 0 ]; then
|
echo -e "${BRed}Could not download grub2 theme. Skipping.${NC}"
|
||||||
# echo "Failed to edit /etc/default/grub (to enable grub theme)"
|
else
|
||||||
# return 1 2>/dev/null || exit 1
|
# TODO: auto-detect screen resolution
|
||||||
# fi
|
cd grub2-themes && chmod +x install.sh && ./install.sh -t vimix >/dev/null 2>&1 && cd ..
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${BRed}Could not install grub2 theme. Skipping.${NC}"
|
||||||
|
fi
|
||||||
|
rm -rf "grub2-themes"
|
||||||
|
fi
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>/dev/null
|
grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>/dev/null
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${BRed}Failed to generate grub configuration. Skipping. Be careful !${NC}"
|
||||||
|
fi
|
||||||
|
|
||||||
# VPN configuration
|
# VPN configuration
|
||||||
echo "Setting up VPN..."
|
echo "Setting up VPN..."
|
||||||
|
|||||||
Reference in New Issue
Block a user