tryed _setup function

This commit is contained in:
pika 2025-05-12 17:08:27 +02:00
parent d86388333d
commit 329184002a

View file

@ -53,3 +53,34 @@ _install() {
;; ;;
esac esac
} }
_setup(){
case "$1" in
--help | -h | help)
_help
;;
hyprland | hypr)
if _check; then
if ! command_exists zen-browser; then
echo "Installing zen-browser"
_install_func "zen-browser"
fi
if ! command_exists rofi; then
echo "Installing rofi"
_install_func "rofi"
fi
if ! command_exists swww; then
echo "Installing swww"
_install_func "swww"
fi
fi
;;
*)
if _check; then
_install_func "$1" "$2"
fi
;;
esac
}