maybe i broke it :)

This commit is contained in:
pika 2025-05-11 15:17:10 +02:00
parent 28c4733505
commit ccc68c5612

View file

@ -36,14 +36,6 @@ getImports() {
rm "$import"
}
run(){
if $silent; then
silentexec "$@"
else
"$@"
fi
}
askThings() {
echo_note "Do you want to install hyprland? (y/N)"
read -r askHyprland </dev/tty
@ -100,17 +92,16 @@ instCustom() {
waybar) checkAndInstall waybar ;;
hyprpanel)
case $distro in
arch) _install ags-hyprpanel-git ;;
arch) run _install ags-hyprpanel-git ;;
*) echo_error "Hyprpanel cannot be installed for ${YELLOW}${distro}${RED} right now.." ;;
esac
;;
gBar)
case $distro in
arch) _install gbar-git ;;
arch) run _install gbar-git ;;
*) echo_error "gBar cannot be installed for ${YELLOW}${distro}${RED} right now.." ;;
esac
;;
;;
esac
}
@ -120,12 +111,12 @@ cloneDotfiles() {
case "$askDotfiles2" in
[pP])
echo_info "Cloning pika's config..."
git clone --recursive --depth=1 https://git.k4li.de/dotfiles/hyprdots.git $HOME/git/hyprdots || echo_error "Failed to clone dotfiles!" && exit 1
run git clone --recursive --depth=1 https://git.k4li.de/dotfiles/hyprdots.git "$HOME/git/hyprdots" || { echo_error "Failed to clone dotfiles!" && exit 1; }
cd $HOME/git/hyprdots || echo_error "Failed to clone dotfiles!" && exit 1
cd $HOME/git/hyprdots || { echo_error "Failed to clone dotfiles!" && exit 1; }
echo_info "Installing dotfiles..."
make </dev/tty || echo_error "Failed to install dotfiles!" && exit 1
make </dev/tty || { echo_error "Failed to install dotfiles!" && exit 1; }
echo_info "Dotfiles installed successfully!"
;;
@ -133,7 +124,7 @@ cloneDotfiles() {
echo_info "Cloning dotfiles from $askDotfiles2..."
git clone --recursive --depth=1 $askDotfiles2 $HOME/git/hyprdots
cd $HOME/git/hyprdots || echo_error "Failed to clone dotfiles!" && exit 1
cd $HOME/git/hyprdots || { echo_error "Failed to clone dotfiles!" && exit 1; }
echo_info "Your dotfiles have been saved to $HOME/git/hyprdots"
echo_info "You can now install your dotfiles how you want to!"