Add 2k and 4k background image for grub theme
|
@ -21,8 +21,14 @@ Usage: `sudo ./install.sh` **[OPTIONS...]**
|
||||||
| -s, --stylish | Stylish grub theme |
|
| -s, --stylish | Stylish grub theme |
|
||||||
| -t, --tela | Tela grub theme |
|
| -t, --tela | Tela grub theme |
|
||||||
| -l, --slaze | Slaze grub theme |
|
| -l, --slaze | Slaze grub theme |
|
||||||
|
| -2, --2k | Install 2k(2560x1440) background image |
|
||||||
|
| -4, --4k | Install 4k(3840x2160) background image |
|
||||||
| -h, --help | Show this help |
|
| -h, --help | Show this help |
|
||||||
|
|
||||||
|
For example: `Install Tela theme on 2k display device`
|
||||||
|
|
||||||
|
sudo ./install -t -2
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
### Vimix grub theme
|
### Vimix grub theme
|
||||||
|
|
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 161 KiB |
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 189 KiB |
BIN
backgrounds/2k/background-stylish.jpg
Normal file
After Width: | Height: | Size: 139 KiB |
BIN
backgrounds/2k/background-tela.jpg
Normal file
After Width: | Height: | Size: 90 KiB |
BIN
backgrounds/2k/background-vimix.jpg
Normal file
After Width: | Height: | Size: 193 KiB |
BIN
backgrounds/4k/background-stylish.jpg
Normal file
After Width: | Height: | Size: 480 KiB |
BIN
backgrounds/4k/background-tela.jpg
Normal file
After Width: | Height: | Size: 358 KiB |
BIN
backgrounds/4k/background-vimix.jpg
Normal file
After Width: | Height: | Size: 619 KiB |
28
install.sh
|
@ -51,6 +51,8 @@ usage() {
|
||||||
printf " %-25s%s\n" "-s, --stylish" "stylish grub theme"
|
printf " %-25s%s\n" "-s, --stylish" "stylish grub theme"
|
||||||
printf " %-25s%s\n" "-t, --tela" "tela grub theme"
|
printf " %-25s%s\n" "-t, --tela" "tela grub theme"
|
||||||
printf " %-25s%s\n" "-v, --vimix" "vimix grub theme"
|
printf " %-25s%s\n" "-v, --vimix" "vimix grub theme"
|
||||||
|
printf " %-25s%s\n" "-2, --2k" "Install 2k(2560x1440) background image"
|
||||||
|
printf " %-25s%s\n" "-4, --24" "Install 4k(3840x2160) background image"
|
||||||
printf " %-25s%s\n" "-h, --help" "Show this help"
|
printf " %-25s%s\n" "-h, --help" "Show this help"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,10 +66,20 @@ install() {
|
||||||
elif [[ ${theme} == 'vimix' ]]; then
|
elif [[ ${theme} == 'vimix' ]]; then
|
||||||
local name="Vimix"
|
local name="Vimix"
|
||||||
else
|
else
|
||||||
prompt -i "\n Run sudo ./install.sh again! or run ./install.sh -h for help"
|
prompt -i "\n Run ./install.sh -h for help or install dialog"
|
||||||
|
install_dialog
|
||||||
|
prompt -i "\n Run ./install.sh again!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${screen} == '2k' ]]; then
|
||||||
|
local screen="2k"
|
||||||
|
elif [[ ${screen} == '4k' ]]; then
|
||||||
|
local screen="4k"
|
||||||
|
else
|
||||||
|
local screen="1080p"
|
||||||
|
fi
|
||||||
|
|
||||||
# Checking for root access and proceed if it is present
|
# Checking for root access and proceed if it is present
|
||||||
if [ "$UID" -eq "$ROOT_UID" ]; then
|
if [ "$UID" -eq "$ROOT_UID" ]; then
|
||||||
|
|
||||||
|
@ -80,11 +92,11 @@ install() {
|
||||||
[[ -d /boot/grub2 ]] && mkdir -p "${THEME_DIR_2}/${name}"
|
[[ -d /boot/grub2 ]] && mkdir -p "${THEME_DIR_2}/${name}"
|
||||||
|
|
||||||
# Copy theme
|
# Copy theme
|
||||||
prompt -i "\n Installing ${name} theme..."
|
prompt -i "\n Installing ${name} ${screen} theme..."
|
||||||
|
|
||||||
if [ -d /boot/grub ]; then
|
if [ -d /boot/grub ]; then
|
||||||
cp -a "${REO_DIR}/common/"* "${THEME_DIR}/${name}"
|
cp -a "${REO_DIR}/common/"* "${THEME_DIR}/${name}"
|
||||||
cp -a "${REO_DIR}/backgrounds/background-${theme}.jpg" "${THEME_DIR}/${name}/background.jpg"
|
cp -a "${REO_DIR}/backgrounds/${screen}/background-${theme}.jpg" "${THEME_DIR}/${name}/background.jpg"
|
||||||
|
|
||||||
if [ ${theme} == 'tela' ]; then
|
if [ ${theme} == 'tela' ]; then
|
||||||
cp -a "${REO_DIR}/assets/assets-tela/icons" "${THEME_DIR}/${name}"
|
cp -a "${REO_DIR}/assets/assets-tela/icons" "${THEME_DIR}/${name}"
|
||||||
|
@ -97,7 +109,7 @@ install() {
|
||||||
|
|
||||||
if [ -d /boot/grub2 ]; then
|
if [ -d /boot/grub2 ]; then
|
||||||
cp -a "${REO_DIR}/common/"* "${THEME_DIR_2}/${name}"
|
cp -a "${REO_DIR}/common/"* "${THEME_DIR_2}/${name}"
|
||||||
cp -a "${REO_DIR}/backgrounds/background-${theme}.jpg" "${THEME_DIR_2}/${name}/background.jpg"
|
cp -a "${REO_DIR}/backgrounds/${screen}/background-${theme}.jpg" "${THEME_DIR_2}/${name}/background.jpg"
|
||||||
|
|
||||||
if [ ${theme} == 'tela' ]; then
|
if [ ${theme} == 'tela' ]; then
|
||||||
cp -a "${REO_DIR}/assets/assets-tela/icons" "${THEME_DIR_2}/${name}"
|
cp -a "${REO_DIR}/assets/assets-tela/icons" "${THEME_DIR_2}/${name}"
|
||||||
|
@ -223,6 +235,12 @@ while [[ $# -ge 1 ]]; do
|
||||||
-v|--vimix)
|
-v|--vimix)
|
||||||
theme='vimix'
|
theme='vimix'
|
||||||
;;
|
;;
|
||||||
|
-2|--2k)
|
||||||
|
screen='2k'
|
||||||
|
;;
|
||||||
|
-4|--4k)
|
||||||
|
screen='4k'
|
||||||
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -236,6 +254,6 @@ while [[ $# -ge 1 ]]; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
install_dialog && install
|
install
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|