testing source_script function
This commit is contained in:
parent
35f5f379f7
commit
a3fe94d7dc
1 changed files with 22 additions and 18 deletions
40
hyprland.sh
40
hyprland.sh
|
@ -78,9 +78,7 @@ askThings() {
|
|||
bar="waybar"
|
||||
;;
|
||||
[Hh] | hyprpanel)
|
||||
if ! $debian; then
|
||||
bar="hyprpanel"
|
||||
else
|
||||
if $debian; then
|
||||
echo_warning "hyprpanel is not available for $distro"
|
||||
echo_warning "the script automatically chose gBar for you instead.."
|
||||
bar="gBar"
|
||||
|
@ -145,22 +143,23 @@ instCustom() {
|
|||
for _d in "${advDeps[@]}"; do
|
||||
case "$_d" in
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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"
|
||||
|
@ -224,25 +223,30 @@ getDependencies() {
|
|||
# │ You can define dependencies for various linux distros here. It will │
|
||||
# │ automagically be pulled via the $pkgArray[$distro] variable │
|
||||
# ╰─────────────────────────────────────────────────────────────────────────╯
|
||||
depsDebian=(
|
||||
generalDeps=(
|
||||
hyprland
|
||||
hyprland-dev
|
||||
xdg-desktop-portal-hyprland
|
||||
hyprland-protocols
|
||||
wayland-protocols
|
||||
xdg-desktop-portal-hyprland
|
||||
|
||||
grim
|
||||
slurp
|
||||
wlogout
|
||||
ffmpeg
|
||||
wob
|
||||
nwg-look
|
||||
kitty
|
||||
wl-clipboard
|
||||
)
|
||||
depsDebian=(
|
||||
hyprland-dev
|
||||
)
|
||||
depsFedora=()
|
||||
depsOpensuse=()
|
||||
depsArch=(
|
||||
hyprland
|
||||
hypridle
|
||||
hyprpolkitagent
|
||||
hyprland-protocols
|
||||
wayland-utils
|
||||
wayland-protocols
|
||||
wl-clipboard
|
||||
xdg-desktop-portal-hyprland
|
||||
)
|
||||
depsAlpine=()
|
||||
|
||||
|
@ -286,12 +290,12 @@ getDependencies() {
|
|||
}
|
||||
|
||||
main() {
|
||||
askThings
|
||||
if $silent; then
|
||||
echo_warning "Executing script silently!"
|
||||
fi
|
||||
checkEnv
|
||||
|
||||
askThings
|
||||
getDependencies
|
||||
instCustom
|
||||
checkConfig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue