From 7d3b35eafed3570a57e81b276f543c60f2a146d8 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 May 2025 11:26:09 +0200 Subject: [PATCH] testing new style --- hyprland.sh | 233 ++++++++++++++++++++++------------------------------ 1 file changed, 99 insertions(+), 134 deletions(-) diff --git a/hyprland.sh b/hyprland.sh index c07d30a..2fbd368 100644 --- a/hyprland.sh +++ b/hyprland.sh @@ -21,8 +21,8 @@ command_exists() { # CAUTION: # This only wokrs for generic package names, like neovim, or vim, or tmux etc.. # not every package packagemanager has the same packagenames for their packages.. -getImports() { - i="https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh" +source-script() { + i="https://git.k4li.de/scripts/imports/raw/branch/main/dream.sh" import="$(mktemp)" if command_exists curl; then curl -fsSL $i -o $import @@ -36,29 +36,6 @@ 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 - else - echo_error "Cannot install $PACKAGE for $distro" - return 69 - fi -} - askThings() { # if ! command_exists waybar && ! command_exists hyprpanel && ! command_exists gBar; then case "$distro" in @@ -69,65 +46,16 @@ askThings() { esac [[ $bar == hyprpanel ]] && [[ $distro == arch ]] && bar=ags-hyprpanel-git - # read -r askBar ─────────────────────────────────────────────────────────────────── unset PACKAGE