From afa88a2146709cfef7612eb8d2a8f9501f28ee12 Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 12 May 2025 15:44:59 +0200 Subject: [PATCH] wip --- hyprland.sh | 55 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/hyprland.sh b/hyprland.sh index a0571d9..58ce58d 100644 --- a/hyprland.sh +++ b/hyprland.sh @@ -36,14 +36,34 @@ getImports() { 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() { echo_note "Do you want to install hyprland? (y/N)" read -r askHyprland