diff --git a/hyprland.sh b/hyprland.sh index 5a2dc91..c9753b9 100644 --- a/hyprland.sh +++ b/hyprland.sh @@ -110,21 +110,25 @@ askThings() { } instCustom() { - case $bar in - waybar) checkAndInstall waybar ;; - hyprpanel) - case $distro in - arch) run _install ags-hyprpanel-git ;; - *) echo_error "Hyprpanel cannot be installed for ${YELLOW}${distro}${RED} right now.." ;; + for _d in "${advDeps[@]}"; do + case "$_d" in + hyprpanel) + case $distro in + arch) run _install ags-hyprpanel-git ;; + *) echo_error "Hyprpanel cannot be installed for ${YELLOW}${distro}${RED} right now.." ;; + esac + ;; + gBar) + case $distro in + arch) run _install gbar-git ;; + *) echo_error "gBar cannot be installed for ${YELLOW}${distro}${RED} right now.." ;; + esac + ;; + *) + checkAndInstall "$_d" + ;; esac - ;; - gBar) - case $distro in - arch) run _install gbar-git ;; - *) echo_error "gBar cannot be installed for ${YELLOW}${distro}${RED} right now.." ;; - esac - ;; - esac + done } cloneDotfiles() {