This commit is contained in:
pika 2025-05-12 15:44:59 +02:00
parent 8a4e79612b
commit afa88a2146

View file

@ -36,14 +36,34 @@ getImports() {
rm "$import" rm "$import"
} }
checkEnv() {
if $debian; then
echo_info "Using debian.. checking for compatibility.."
if ! $trixie; then
echo_error "You are not using trixie, this script can currently only run on trixie (13)!"
echo_error "trixie: $trixie"
echo_error "bookworm: $bookworm"
echo_error "bullseye: $bullseye"
echo_error "buster: $buster"
return 69
else
echo_info "Using trixie.. good choice"
return 0
fi
elif $arch; then
echo_info "Using arch linux.. You really shouldn't get any errors :)"
return 0
fi
}
askThings() { askThings() {
echo_note "Do you want to install hyprland? (y/N)" echo_note "Do you want to install hyprland? (y/N)"
read -r askHyprland </dev/tty read -r askHyprland </dev/tty
case "$askHyprland" in case "$askHyprland" in
[yY]) askHyprland="true" ;; [yY]) return 0 ;;
*) *)
echo_error "Aborting now!" echo_error "Aborting now!"
exit 1 exit 69
;; ;;
esac esac
@ -199,15 +219,25 @@ main() {
checkAndInstall "${deps[@]}" checkAndInstall "${deps[@]}"
;; ;;
debian) debian)
local deps=( if $trixie; then
hyprland local deps=(
hyprland-dev hyprland
hyprland-protocols hyprland-dev
wayland-protocols hyprland-protocols
xdg-desktop-portal-hyprland wayland-protocols
kitty xdg-desktop-portal-hyprland
) kitty
checkAndInstall "${deps[@]}" )
checkAndInstall "${deps[@]}"
else
echo_error "Your current distro of debian is not sufficient, you have to have trixie (13) installed"
echo "trixie: $trixie"
echo "bookworm: $bookworm"
echo "bullseye: $bullseye"
echo "buster: $buster"
exit 69
fi
;; ;;
*) *)
echo "$distro is not supported by this script!" echo "$distro is not supported by this script!"
@ -228,6 +258,7 @@ if getImports; then
esac esac
fi fi
checkEnv
askThings askThings
instCustom
main main
instCustom