From f4680564a9087349d47adde82d8a1cafd29dfe8b Mon Sep 17 00:00:00 2001 From: Shaan Subbaiah Date: Mon, 19 Apr 2021 11:26:06 +0530 Subject: [PATCH 1/2] Fix missing whitesur arguments in help function --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7cfb6d2..552e387 100755 --- a/install.sh +++ b/install.sh @@ -56,8 +56,8 @@ usage() { printf "%s\n" "Usage: ${0##*/} [OPTIONS...]" printf "\n%s\n" "OPTIONS:" printf " %-25s%s\n" "-b, --boot" "install grub theme into /boot/grub/themes" - printf " %-25s%s\n" "-t, --theme" "theme variant(s) [tela|vimix|stylish|slaze] (default is tela)" - printf " %-25s%s\n" "-i, --icon" "icon variant(s) [color|white] (default is color)" + printf " %-25s%s\n" "-t, --theme" "theme variant(s) [tela|vimix|stylish|slaze|whitesur] (default is tela)" + printf " %-25s%s\n" "-i, --icon" "icon variant(s) [color|white|whitesur] (default is color)" printf " %-25s%s\n" "-s, --screen" "screen display variant(s) [1080p|2k|4k|ultrawide|ultrawide2k] (default is 1080p)" printf " %-25s%s\n" "-r, --remove" "Remove theme (must add theme name option)" printf " %-25s%s\n" "-h, --help" "Show this help" From 9b2a9f41b9d31b3e516f05c00a489fdd2e922e08 Mon Sep 17 00:00:00 2001 From: shaansubbaiah Date: Mon, 19 Apr 2021 12:14:34 +0530 Subject: [PATCH 2/2] Prevent slaze, whitesur themes with ultrawide res --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 552e387..51efefa 100755 --- a/install.sh +++ b/install.sh @@ -68,11 +68,11 @@ install() { local icon=${2} local screen=${3} - if [[ ${screen} == 'ultrawide' && ${theme} == 'Slaze' ]]; then - prompt -e "ultrawide 1080p does not support Slaze theme" + if [[ ${screen} == 'ultrawide' && ( ${theme} == 'slaze' || ${theme} == 'whitesur' ) ]]; then + prompt -e "ultrawide 1080p does not support Slaze and WhiteSur theme" exit 1 - elif [[ ${screen} == 'ultrawide2k' && ${theme} == 'Slaze' ]]; then - prompt -e "ultrawide 1440p does not support Slaze theme" + elif [[ ${screen} == 'ultrawide2k' && ( ${theme} == 'slaze' || ${theme} == 'whitesur' ) ]]; then + prompt -e "ultrawide 1440p does not support Slaze and WhiteSur theme" exit 1 fi