diff --git a/README.md b/README.md index 0e22f148..3f06ecfd 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,14 @@ Usage: `sudo ./install.sh` **[OPTIONS...]** | -s, --stylish | Stylish grub theme | | -t, --tela | Tela 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 | +For example: `Install Tela theme on 2k display device` + + sudo ./install -t -2 + ## Screenshots ### Vimix grub theme diff --git a/backgrounds/background-slaze.jpg b/backgrounds/1080p/background-slaze.jpg similarity index 100% rename from backgrounds/background-slaze.jpg rename to backgrounds/1080p/background-slaze.jpg diff --git a/backgrounds/background-stylish.jpg b/backgrounds/1080p/background-stylish.jpg similarity index 100% rename from backgrounds/background-stylish.jpg rename to backgrounds/1080p/background-stylish.jpg diff --git a/backgrounds/background-tela.jpg b/backgrounds/1080p/background-tela.jpg similarity index 100% rename from backgrounds/background-tela.jpg rename to backgrounds/1080p/background-tela.jpg diff --git a/backgrounds/background-vimix.jpg b/backgrounds/1080p/background-vimix.jpg similarity index 100% rename from backgrounds/background-vimix.jpg rename to backgrounds/1080p/background-vimix.jpg diff --git a/backgrounds/2k/background-stylish.jpg b/backgrounds/2k/background-stylish.jpg new file mode 100644 index 00000000..d68c3e73 Binary files /dev/null and b/backgrounds/2k/background-stylish.jpg differ diff --git a/backgrounds/2k/background-tela.jpg b/backgrounds/2k/background-tela.jpg new file mode 100644 index 00000000..19a22b40 Binary files /dev/null and b/backgrounds/2k/background-tela.jpg differ diff --git a/backgrounds/2k/background-vimix.jpg b/backgrounds/2k/background-vimix.jpg new file mode 100644 index 00000000..a86a64f2 Binary files /dev/null and b/backgrounds/2k/background-vimix.jpg differ diff --git a/backgrounds/4k/background-stylish.jpg b/backgrounds/4k/background-stylish.jpg new file mode 100644 index 00000000..8bca2088 Binary files /dev/null and b/backgrounds/4k/background-stylish.jpg differ diff --git a/backgrounds/4k/background-tela.jpg b/backgrounds/4k/background-tela.jpg new file mode 100644 index 00000000..0c178818 Binary files /dev/null and b/backgrounds/4k/background-tela.jpg differ diff --git a/backgrounds/4k/background-vimix.jpg b/backgrounds/4k/background-vimix.jpg new file mode 100644 index 00000000..365d7424 Binary files /dev/null and b/backgrounds/4k/background-vimix.jpg differ diff --git a/install.sh b/install.sh index 8dc27382..b88d0cb8 100755 --- a/install.sh +++ b/install.sh @@ -51,6 +51,8 @@ usage() { printf " %-25s%s\n" "-s, --stylish" "stylish grub theme" printf " %-25s%s\n" "-t, --tela" "tela 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" } @@ -64,10 +66,20 @@ install() { elif [[ ${theme} == 'vimix' ]]; then local name="Vimix" 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 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 if [ "$UID" -eq "$ROOT_UID" ]; then @@ -80,11 +92,11 @@ install() { [[ -d /boot/grub2 ]] && mkdir -p "${THEME_DIR_2}/${name}" # Copy theme - prompt -i "\n Installing ${name} theme..." + prompt -i "\n Installing ${name} ${screen} theme..." if [ -d /boot/grub ]; then 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 cp -a "${REO_DIR}/assets/assets-tela/icons" "${THEME_DIR}/${name}" @@ -97,7 +109,7 @@ install() { if [ -d /boot/grub2 ]; then 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 cp -a "${REO_DIR}/assets/assets-tela/icons" "${THEME_DIR_2}/${name}" @@ -223,6 +235,12 @@ while [[ $# -ge 1 ]]; do -v|--vimix) theme='vimix' ;; + -2|--2k) + screen='2k' + ;; + -4|--4k) + screen='4k' + ;; -h|--help) usage exit 0 @@ -236,6 +254,6 @@ while [[ $# -ge 1 ]]; do shift done -install_dialog && install +install exit 0