Initial Commit
|
@ -1,2 +1,8 @@
|
|||
# Top 5 Bootloader Themes
|
||||
|
||||
Installation
|
||||
|
||||
```
|
||||
git clone https://github.com/ChrisTitusTech/
|
||||
|
||||
Full Walkthrough <https://christitus.com/bootloader-themes>
|
133
install.sh
Executable file
|
@ -0,0 +1,133 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Grub2 Theme
|
||||
|
||||
ROOT_UID=0
|
||||
THEME_DIR="/usr/share/grub/themes"
|
||||
PS3='Choose The Theme You Want: '
|
||||
themes=("Vimix" "Cyberpunk" "Shodan" "fallout" "CyberRe" "Quit")
|
||||
select THEME_NAME in "${themes[@]}"; do
|
||||
case $THEME_NAME in
|
||||
"Vimix")
|
||||
echo "Installing Vimix to Boot"
|
||||
break
|
||||
;;
|
||||
"Cyberpunk")
|
||||
echo "Installing Cyberpunk to Boot"
|
||||
break
|
||||
;;
|
||||
"Shodan")
|
||||
echo "Installing Shodan to Boot"
|
||||
break
|
||||
;;
|
||||
"fallout")
|
||||
echo "Installing fallout to Boot"
|
||||
break
|
||||
;;
|
||||
"CyberRe")
|
||||
echo "Installing CyberRe to Boot"
|
||||
break
|
||||
;;
|
||||
"Quit")
|
||||
echo "User requested exit"
|
||||
exit
|
||||
;;
|
||||
*) echo "invalid option $REPLY";;
|
||||
esac
|
||||
done
|
||||
|
||||
MAX_DELAY=20 # max delay for user to enter root password
|
||||
|
||||
#COLORS
|
||||
CDEF=" \033[0m" # default color
|
||||
CCIN=" \033[0;36m" # info color
|
||||
CGSC=" \033[0;32m" # success color
|
||||
CRER=" \033[0;31m" # error color
|
||||
CWAR=" \033[0;33m" # waring color
|
||||
b_CDEF=" \033[1;37m" # bold default color
|
||||
b_CCIN=" \033[1;36m" # bold info color
|
||||
b_CGSC=" \033[1;32m" # bold success color
|
||||
b_CRER=" \033[1;31m" # bold error color
|
||||
b_CWAR=" \033[1;33m" # bold warning color
|
||||
|
||||
# echo like ... with flag type and display message colors
|
||||
prompt () {
|
||||
case ${1} in
|
||||
"-s"|"--success")
|
||||
echo -e "${b_CGSC}${@/-s/}${CDEF}";; # print success message
|
||||
"-e"|"--error")
|
||||
echo -e "${b_CRER}${@/-e/}${CDEF}";; # print error message
|
||||
"-w"|"--warning")
|
||||
echo -e "${b_CWAR}${@/-w/}${CDEF}";; # print warning message
|
||||
"-i"|"--info")
|
||||
echo -e "${b_CCIN}${@/-i/}${CDEF}";; # print info message
|
||||
*)
|
||||
echo -e "$@"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Welcome message
|
||||
prompt -s "\n\t*************************\n\t* ${THEME_NAME} - Grub2 Theme *\n\t*************************"
|
||||
|
||||
# Check command avalibility
|
||||
function has_command() {
|
||||
command -v $1 > /dev/null
|
||||
}
|
||||
|
||||
prompt -w "\nChecking for root access...\n"
|
||||
|
||||
# Checking for root access and proceed if it is present
|
||||
if [ "$UID" -eq "$ROOT_UID" ]; then
|
||||
|
||||
# Create themes directory if not exists
|
||||
prompt -i "\nChecking for the existence of themes directory...\n"
|
||||
[[ -d ${THEME_DIR}/${THEME_NAME} ]] && rm -rf ${THEME_DIR}/${THEME_NAME}
|
||||
mkdir -p "${THEME_DIR}/${THEME_NAME}"
|
||||
|
||||
# Copy theme
|
||||
prompt -i "\nInstalling ${THEME_NAME} theme...\n"
|
||||
|
||||
cp -a themes/${THEME_NAME}/* ${THEME_DIR}/${THEME_NAME}
|
||||
|
||||
# Set theme
|
||||
prompt -i "\nSetting ${THEME_NAME} as default...\n"
|
||||
|
||||
# Backup grub config
|
||||
cp -an /etc/default/grub /etc/default/grub.bak
|
||||
|
||||
grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_THEME=/d' /etc/default/grub
|
||||
|
||||
echo "GRUB_THEME=\"${THEME_DIR}/${THEME_NAME}/theme.txt\"" >> /etc/default/grub
|
||||
|
||||
# Update grub config
|
||||
echo -e "Updating grub config..."
|
||||
if has_command update-grub; then
|
||||
update-grub
|
||||
elif has_command grub-mkconfig; then
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
elif has_command grub2-mkconfig; then
|
||||
if has_command zypper; then
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
elif has_command dnf; then
|
||||
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||
fi
|
||||
fi
|
||||
|
||||
# Success message
|
||||
prompt -s "\n\t ***************\n\t * All done! *\n\t ***************\n"
|
||||
|
||||
else
|
||||
|
||||
# Error message
|
||||
prompt -e "\n [ Error! ] -> Run me as root "
|
||||
|
||||
# persisted execution of the script as root
|
||||
read -p "[ trusted ] specify the root password : " -t${MAX_DELAY} -s
|
||||
[[ -n "$REPLY" ]] && {
|
||||
sudo -S <<< $REPLY $0
|
||||
} || {
|
||||
prompt "\n Operation canceled Bye"
|
||||
exit 1
|
||||
}
|
||||
fi
|
BIN
themes/CyberRe/background.png
Executable file
After Width: | Height: | Size: 1.1 MiB |
BIN
themes/CyberRe/boot_menu2_c.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
themes/CyberRe/dejavu_14.pf2
Executable file
BIN
themes/CyberRe/droidlogo_bold_17.pf2
Executable file
BIN
themes/CyberRe/droidlogo_bold_20.pf2
Executable file
BIN
themes/CyberRe/droidlogo_bold_26.pf2
Executable file
BIN
themes/CyberRe/droidlogo_regular_12.pf2
Executable file
BIN
themes/CyberRe/droidlogo_regular_17.pf2
Executable file
BIN
themes/CyberRe/highlight_c.png
Executable file
After Width: | Height: | Size: 2 KiB |
BIN
themes/CyberRe/highlight_w.png
Executable file
After Width: | Height: | Size: 3.6 KiB |
BIN
themes/CyberRe/preview.png
Executable file
After Width: | Height: | Size: 638 KiB |
BIN
themes/CyberRe/progress_highlight_c.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
49
themes/CyberRe/theme.txt
Executable file
|
@ -0,0 +1,49 @@
|
|||
# Copyright (C) 2020 L. Henrique Lopes - HENK
|
||||
|
||||
# general settings
|
||||
title-text: ""
|
||||
title-color: "#3ec6ae"
|
||||
message-font: "DejaVu Sans Regular 14"
|
||||
message-color: "#fd262e"
|
||||
message-bg-color: "#808080"
|
||||
desktop-image: "background.png"
|
||||
desktop-color: "#808080"
|
||||
terminal-font: "DejaVu Sans Regular 14"
|
||||
|
||||
|
||||
# boot menu
|
||||
+ boot_menu {
|
||||
left = 28%
|
||||
width = 50%
|
||||
top = 22%
|
||||
height = 45%
|
||||
item_font = "DroidLogo Regular 17"
|
||||
item_color = "#fb3048"
|
||||
selected_item_font = "DroidLogo Regular 17"
|
||||
selected_item_color = "#74d6cf"
|
||||
icon_width = 16
|
||||
icon_height = 16
|
||||
item_height = 33
|
||||
item_padding = 20
|
||||
item_icon_space = 5
|
||||
item_spacing = 5
|
||||
menu_pixmap_style = "boot_menu2_*.png"
|
||||
selected_item_pixmap_style = "highlight_*.png"
|
||||
}
|
||||
|
||||
# Show progress
|
||||
+ progress_bar {
|
||||
id = "__timeout__"
|
||||
left = 0%
|
||||
width = 100%
|
||||
top = 99%
|
||||
height = 31
|
||||
show_text = false
|
||||
text = ""
|
||||
fg_color = "#3daee9"
|
||||
bg_color = "#31363b"
|
||||
border_color = "#31363b"
|
||||
highlight_style = "progress_highlight_*.png"
|
||||
}
|
||||
|
||||
|
BIN
themes/Cyberpunk/Blender_Pro_Book_12.pf2
Normal file
BIN
themes/Cyberpunk/Blender_Pro_Book_14.pf2
Normal file
BIN
themes/Cyberpunk/Blender_Pro_Book_16.pf2
Normal file
BIN
themes/Cyberpunk/Blender_Pro_Book_24.pf2
Normal file
BIN
themes/Cyberpunk/Blender_Pro_Book_32.pf2
Normal file
BIN
themes/Cyberpunk/Blender_Pro_Book_48.pf2
Normal file
BIN
themes/Cyberpunk/background.png
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
themes/Cyberpunk/icons/Manjaro.i686.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
themes/Cyberpunk/icons/Manjaro.x86_64.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
themes/Cyberpunk/icons/android-x86.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
themes/Cyberpunk/icons/android.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
themes/Cyberpunk/icons/antergos.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
themes/Cyberpunk/icons/arch.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
themes/Cyberpunk/icons/cancel.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
themes/Cyberpunk/icons/cd.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
themes/Cyberpunk/icons/chakra.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
themes/Cyberpunk/icons/debian.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
themes/Cyberpunk/icons/deepin.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
themes/Cyberpunk/icons/devuan.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
themes/Cyberpunk/icons/dragonflybsd.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
themes/Cyberpunk/icons/driver.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/Cyberpunk/icons/dvd.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
themes/Cyberpunk/icons/edit.png
Normal file
After Width: | Height: | Size: 938 B |
BIN
themes/Cyberpunk/icons/efi.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
themes/Cyberpunk/icons/elementary.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
themes/Cyberpunk/icons/endeavouros.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
themes/Cyberpunk/icons/fedora.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
themes/Cyberpunk/icons/find.efi.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
themes/Cyberpunk/icons/find.none.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/Cyberpunk/icons/freebsd.png
Normal file
After Width: | Height: | Size: 8 KiB |
BIN
themes/Cyberpunk/icons/gentoo.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
themes/Cyberpunk/icons/gnu-linux.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
themes/Cyberpunk/icons/guix.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
themes/Cyberpunk/icons/guixsd.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
themes/Cyberpunk/icons/hard-drive.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
themes/Cyberpunk/icons/harddrive.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
themes/Cyberpunk/icons/hdd.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
themes/Cyberpunk/icons/help.png
Normal file
After Width: | Height: | Size: 981 B |
BIN
themes/Cyberpunk/icons/iso.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
themes/Cyberpunk/icons/kali.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
themes/Cyberpunk/icons/kaos.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
themes/Cyberpunk/icons/kbd.png
Normal file
After Width: | Height: | Size: 931 B |
BIN
themes/Cyberpunk/icons/korora.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
themes/Cyberpunk/icons/kubuntu.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
themes/Cyberpunk/icons/lang.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/Cyberpunk/icons/lfs.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
themes/Cyberpunk/icons/linux.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
themes/Cyberpunk/icons/linuxmint.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
themes/Cyberpunk/icons/lubuntu.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
themes/Cyberpunk/icons/macos.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
themes/Cyberpunk/icons/macosx.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
themes/Cyberpunk/icons/mageia.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
themes/Cyberpunk/icons/manjaro.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
themes/Cyberpunk/icons/memtest.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
themes/Cyberpunk/icons/memtest86.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
themes/Cyberpunk/icons/neon.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
themes/Cyberpunk/icons/netbsd.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
themes/Cyberpunk/icons/nixos.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
themes/Cyberpunk/icons/openbsd.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
themes/Cyberpunk/icons/opensuse.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
themes/Cyberpunk/icons/optical.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
themes/Cyberpunk/icons/os.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
themes/Cyberpunk/icons/osx.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
themes/Cyberpunk/icons/poweroff.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
themes/Cyberpunk/icons/puppy.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
themes/Cyberpunk/icons/reactos.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
themes/Cyberpunk/icons/reboot.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
themes/Cyberpunk/icons/recovery.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
themes/Cyberpunk/icons/redhat.png
Normal file
After Width: | Height: | Size: 7 KiB |
BIN
themes/Cyberpunk/icons/restart.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
themes/Cyberpunk/icons/sabayon.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
themes/Cyberpunk/icons/shutdown.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
themes/Cyberpunk/icons/siduction.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
themes/Cyberpunk/icons/slackware.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
themes/Cyberpunk/icons/solus.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
themes/Cyberpunk/icons/solusos.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
themes/Cyberpunk/icons/steam.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
themes/Cyberpunk/icons/steamos.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
themes/Cyberpunk/icons/suse.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
themes/Cyberpunk/icons/system-setup.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
themes/Cyberpunk/icons/system_setup.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
themes/Cyberpunk/icons/systemsetup.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
themes/Cyberpunk/icons/type.png
Normal file
After Width: | Height: | Size: 853 B |
BIN
themes/Cyberpunk/icons/tz.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/Cyberpunk/icons/ubuntu-budgie.png
Normal file
After Width: | Height: | Size: 8.9 KiB |