From 9b2a9f41b9d31b3e516f05c00a489fdd2e922e08 Mon Sep 17 00:00:00 2001 From: shaansubbaiah Date: Mon, 19 Apr 2021 12:14:34 +0530 Subject: [PATCH] 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