maybe i broke it :)
This commit is contained in:
parent
28c4733505
commit
ccc68c5612
1 changed files with 23 additions and 32 deletions
55
hyprland.sh
55
hyprland.sh
|
@ -36,14 +36,6 @@ getImports() {
|
||||||
rm "$import"
|
rm "$import"
|
||||||
}
|
}
|
||||||
|
|
||||||
run(){
|
|
||||||
if $silent; then
|
|
||||||
silentexec "$@"
|
|
||||||
else
|
|
||||||
"$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
askThings() {
|
askThings() {
|
||||||
echo_note "Do you want to install hyprland? (y/N)"
|
echo_note "Do you want to install hyprland? (y/N)"
|
||||||
read -r askHyprland </dev/tty
|
read -r askHyprland </dev/tty
|
||||||
|
@ -100,17 +92,16 @@ instCustom() {
|
||||||
waybar) checkAndInstall waybar ;;
|
waybar) checkAndInstall waybar ;;
|
||||||
hyprpanel)
|
hyprpanel)
|
||||||
case $distro in
|
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.." ;;
|
*) echo_error "Hyprpanel cannot be installed for ${YELLOW}${distro}${RED} right now.." ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
gBar)
|
gBar)
|
||||||
case $distro in
|
case $distro in
|
||||||
arch) _install gbar-git ;;
|
arch) run _install gbar-git ;;
|
||||||
*) echo_error "gBar cannot be installed for ${YELLOW}${distro}${RED} right now.." ;;
|
*) echo_error "gBar cannot be installed for ${YELLOW}${distro}${RED} right now.." ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,12 +111,12 @@ cloneDotfiles() {
|
||||||
case "$askDotfiles2" in
|
case "$askDotfiles2" in
|
||||||
[pP])
|
[pP])
|
||||||
echo_info "Cloning pika's config..."
|
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..."
|
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!"
|
echo_info "Dotfiles installed successfully!"
|
||||||
;;
|
;;
|
||||||
|
@ -133,7 +124,7 @@ cloneDotfiles() {
|
||||||
echo_info "Cloning dotfiles from $askDotfiles2..."
|
echo_info "Cloning dotfiles from $askDotfiles2..."
|
||||||
git clone --recursive --depth=1 $askDotfiles2 $HOME/git/hyprdots
|
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 "Your dotfiles have been saved to $HOME/git/hyprdots"
|
||||||
echo_info "You can now install your dotfiles how you want to!"
|
echo_info "You can now install your dotfiles how you want to!"
|
||||||
|
@ -163,23 +154,23 @@ checkConfig() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
arch)
|
arch)
|
||||||
local deps=(
|
local deps=(
|
||||||
hyprland
|
hyprland
|
||||||
hypridle
|
hypridle
|
||||||
hyprpolkitagent
|
hyprpolkitagent
|
||||||
hyprland-protocols
|
hyprland-protocols
|
||||||
wayland-utils
|
wayland-utils
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
)
|
)
|
||||||
checkAndInstall "${deps[@]}"
|
checkAndInstall "${deps[@]}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$distro is not supported by this script!"
|
echo "$distro is not supported by this script!"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue