wip
This commit is contained in:
parent
1c77bb58e3
commit
ac0482bf7e
3 changed files with 35 additions and 25 deletions
20
hyprland.sh
20
hyprland.sh
|
@ -248,17 +248,21 @@ main() {
|
|||
checkConfig
|
||||
}
|
||||
|
||||
if getImports; then
|
||||
case "$1" in
|
||||
setup() {
|
||||
if getImports; then
|
||||
case "$@" in
|
||||
--silent | -s)
|
||||
echo_info "Executing main silently.."
|
||||
echo_info "Executing script silently.."
|
||||
silent=true
|
||||
;;
|
||||
*) silent=false ;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
checkEnv
|
||||
askThings
|
||||
main
|
||||
instCustom
|
||||
if setup "$@"; then
|
||||
checkEnv
|
||||
askThings
|
||||
main
|
||||
instCustom
|
||||
fi
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
esac
|
||||
}
|
||||
|
||||
setup() {
|
||||
if getImports; then
|
||||
case "$@" in
|
||||
--silent | -s)
|
||||
|
@ -110,6 +111,10 @@
|
|||
silent=false
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
if setup; then
|
||||
getDependencies
|
||||
main </dev/tty
|
||||
fi
|
||||
|
|
|
@ -104,8 +104,9 @@ generic() {
|
|||
|
||||
setup() {
|
||||
if getImports; then
|
||||
case "$1" in
|
||||
case "$@" in
|
||||
--silent | -s)
|
||||
echo_warning "Executing script silently.."
|
||||
silent=true
|
||||
;;
|
||||
*)
|
||||
|
@ -115,7 +116,7 @@ setup() {
|
|||
fi
|
||||
}
|
||||
|
||||
if setup; then
|
||||
if setup "$@"; then
|
||||
case "$distro" in
|
||||
arch | opensuse) _install zellij ;;
|
||||
*) generic ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue