wip
This commit is contained in:
parent
8a4e79612b
commit
afa88a2146
1 changed files with 43 additions and 12 deletions
55
hyprland.sh
55
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 </dev/tty
|
||||
case "$askHyprland" in
|
||||
[yY]) askHyprland="true" ;;
|
||||
[yY]) return 0 ;;
|
||||
*)
|
||||
echo_error "Aborting now!"
|
||||
exit 1
|
||||
exit 69
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -199,15 +219,25 @@ main() {
|
|||
checkAndInstall "${deps[@]}"
|
||||
;;
|
||||
debian)
|
||||
local deps=(
|
||||
hyprland
|
||||
hyprland-dev
|
||||
hyprland-protocols
|
||||
wayland-protocols
|
||||
xdg-desktop-portal-hyprland
|
||||
kitty
|
||||
)
|
||||
checkAndInstall "${deps[@]}"
|
||||
if $trixie; then
|
||||
local deps=(
|
||||
hyprland
|
||||
hyprland-dev
|
||||
hyprland-protocols
|
||||
wayland-protocols
|
||||
xdg-desktop-portal-hyprland
|
||||
kitty
|
||||
)
|
||||
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!"
|
||||
|
@ -228,6 +258,7 @@ if getImports; then
|
|||
esac
|
||||
fi
|
||||
|
||||
checkEnv
|
||||
askThings
|
||||
instCustom
|
||||
main
|
||||
instCustom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue