wip
This commit is contained in:
parent
62b3c73d20
commit
e7a2286a18
1 changed files with 118 additions and 78 deletions
42
hyprland.sh
42
hyprland.sh
|
@ -81,9 +81,31 @@ askThings() {
|
|||
echo_info "Set menu to $menu"
|
||||
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=(
|
||||
$bar
|
||||
$menu
|
||||
$terminal
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -167,6 +189,15 @@ main() {
|
|||
)
|
||||
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!"
|
||||
exit 1
|
||||
|
@ -175,7 +206,16 @@ main() {
|
|||
}
|
||||
|
||||
if getImports; then
|
||||
case "$1" in
|
||||
--silent | -s)
|
||||
echo_info "Executing main silently.."
|
||||
silent=true
|
||||
;;
|
||||
*) silent=false ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
askThings
|
||||
instCustom
|
||||
main
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue