wip
This commit is contained in:
parent
62b3c73d20
commit
e7a2286a18
1 changed files with 118 additions and 78 deletions
46
hyprland.sh
46
hyprland.sh
|
@ -81,9 +81,31 @@ askThings() {
|
||||||
echo_info "Set menu to $menu"
|
echo_info "Set menu to $menu"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo_note "What terminal to you want to install? [a]lacritty, [f]oot, [k]itty, [w]ezterm"
|
||||||
|
read -r askTerminal </dev/tty
|
||||||
|
case "$askTerminal" in
|
||||||
|
[aA] | alacritty)
|
||||||
|
terminal="alacritty"
|
||||||
|
;;
|
||||||
|
[fF] | foot)
|
||||||
|
terminal="foot"
|
||||||
|
;;
|
||||||
|
[kK] | kitty)
|
||||||
|
terminal="kitty"
|
||||||
|
;;
|
||||||
|
[wW] | wezterm)
|
||||||
|
terminal="wezterm"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
terminal="foot"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo_info "Set terminal to $terminal"
|
||||||
|
|
||||||
advDeps=(
|
advDeps=(
|
||||||
$bar
|
$bar
|
||||||
$menu
|
$menu
|
||||||
|
$terminal
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,6 +189,15 @@ main() {
|
||||||
)
|
)
|
||||||
checkAndInstall "${deps[@]}"
|
checkAndInstall "${deps[@]}"
|
||||||
;;
|
;;
|
||||||
|
debian)
|
||||||
|
local deps=(
|
||||||
|
hyprland-dev
|
||||||
|
hyprland-protocols
|
||||||
|
wayland-protocols
|
||||||
|
xdg-desktop-portal-hyprland
|
||||||
|
kitty
|
||||||
|
)
|
||||||
|
checkAndInstall "${deps[@]}"
|
||||||
*)
|
*)
|
||||||
echo "$distro is not supported by this script!"
|
echo "$distro is not supported by this script!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -175,7 +206,16 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if getImports; then
|
if getImports; then
|
||||||
askThings
|
case "$1" in
|
||||||
instCustom
|
--silent | -s)
|
||||||
main
|
echo_info "Executing main silently.."
|
||||||
|
silent=true
|
||||||
|
;;
|
||||||
|
*) silent=false ;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
askThings
|
||||||
|
instCustom
|
||||||
|
main
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue