This commit is contained in:
pika 2025-05-13 10:19:26 +02:00
parent 9c7c7354de
commit b3c5d37084

View file

@ -52,49 +52,49 @@ _install() {
;;
*)
if _check; then
_install_func "$1" "$2"
_install_func "$@"
fi
;;
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
if ! command_exists hyprshot; then
echo "Installing hyprshot"
_install_func "hyprshot"
fi
if ! command_exists gBar; then
echo "Installing gBar"
_install_func "gbar"
fi
fi
;;
*)
if _check; then
_install_func "$1" "$2"
fi
;;
esac
}
# _setup(){
# case "$@" 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
#
# if ! command_exists hyprshot; then
# echo "Installing hyprshot"
# _install_func "hyprshot"
# fi
#
# if ! command_exists gBar; then
# echo "Installing gBar"
# _install_func "gbar"
# fi
# fi
# ;;
# *)
# if _check; then
# _install_func "$1" "$2"
# fi
# ;;
# esac
# }