tryed _setup function
This commit is contained in:
parent
d86388333d
commit
329184002a
1 changed files with 31 additions and 0 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue