testing source_script function

This commit is contained in:
pika 2025-05-19 18:48:43 +02:00
parent 35f5f379f7
commit a3fe94d7dc

View file

@ -78,9 +78,7 @@ askThings() {
bar="waybar" bar="waybar"
;; ;;
[Hh] | hyprpanel) [Hh] | hyprpanel)
if ! $debian; then if $debian; then
bar="hyprpanel"
else
echo_warning "hyprpanel is not available for $distro" echo_warning "hyprpanel is not available for $distro"
echo_warning "the script automatically chose gBar for you instead.." echo_warning "the script automatically chose gBar for you instead.."
bar="gBar" bar="gBar"
@ -145,22 +143,23 @@ instCustom() {
for _d in "${advDeps[@]}"; do for _d in "${advDeps[@]}"; do
case "$_d" in case "$_d" in
hyprpanel) hyprpanel)
eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/hyprpanel.sh)" # eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/hyprpanel.sh)"
source_script https://git.k4li.de/scripts/installs/raw/branch/main/hyprpanel.sh
;; ;;
hyprlock) hyprlock)
eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/hyprlock.sh)" source_script https://git.k4li.de/scripts/installs/raw/branch/main/hyprlock.sh
;; ;;
hyprshot) hyprshot)
eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/hyprshot.sh)" source_script https://git.k4li.de/scripts/installs/raw/branch/main/hyprshot.sh
;; ;;
gBar) gBar)
eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/gbar.sh)" source_script https://git.k4li.de/scripts/installs/raw/branch/main/gBar.sh
;; ;;
rofi) rofi)
eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/rofi.sh)" source_script https://git.k4li.de/scripts/installs/raw/branch/main/rofi.sh
;; ;;
swww) swww)
eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/swww.sh)" source_script https://git.k4li.de/scripts/installs/raw/branch/main/swww.sh
;; ;;
*) *)
checkAndInstall "$_d" checkAndInstall "$_d"
@ -224,25 +223,30 @@ getDependencies() {
# │ You can define dependencies for various linux distros here. It will │ # │ You can define dependencies for various linux distros here. It will │
# │ automagically be pulled via the $pkgArray[$distro] variable │ # │ automagically be pulled via the $pkgArray[$distro] variable │
# ╰─────────────────────────────────────────────────────────────────────────╯ # ╰─────────────────────────────────────────────────────────────────────────╯
depsDebian=( generalDeps=(
hyprland hyprland
hyprland-dev xdg-desktop-portal-hyprland
hyprland-protocols hyprland-protocols
wayland-protocols wayland-protocols
xdg-desktop-portal-hyprland
grim
slurp
wlogout
ffmpeg
wob
nwg-look
kitty kitty
wl-clipboard
)
depsDebian=(
hyprland-dev
) )
depsFedora=() depsFedora=()
depsOpensuse=() depsOpensuse=()
depsArch=( depsArch=(
hyprland
hypridle
hyprpolkitagent hyprpolkitagent
hyprland-protocols
wayland-utils wayland-utils
wayland-protocols wayland-protocols
wl-clipboard
xdg-desktop-portal-hyprland
) )
depsAlpine=() depsAlpine=()
@ -286,12 +290,12 @@ getDependencies() {
} }
main() { main() {
askThings
if $silent; then if $silent; then
echo_warning "Executing script silently!" echo_warning "Executing script silently!"
fi fi
checkEnv checkEnv
askThings
getDependencies getDependencies
instCustom instCustom
checkConfig checkConfig