From 2bc5777b03959ddd6e46c87a95c5d211516582fa Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 11 May 2025 17:35:05 +0200 Subject: [PATCH] wip --- hyprland.sh | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) 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() {