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"
|
||||
}
|
||||
|
||||
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!"
|
||||
|
@ -163,23 +154,23 @@ checkConfig() {
|
|||
|
||||
main() {
|
||||
case "$distro" in
|
||||
arch)
|
||||
local deps=(
|
||||
hyprland
|
||||
hypridle
|
||||
hyprpolkitagent
|
||||
hyprland-protocols
|
||||
wayland-utils
|
||||
wayland-protocols
|
||||
wl-clipboard
|
||||
xdg-desktop-portal-hyprland
|
||||
)
|
||||
checkAndInstall "${deps[@]}"
|
||||
;;
|
||||
*)
|
||||
echo "$distro is not supported by this script!"
|
||||
exit 1
|
||||
;;
|
||||
arch)
|
||||
local deps=(
|
||||
hyprland
|
||||
hypridle
|
||||
hyprpolkitagent
|
||||
hyprland-protocols
|
||||
wayland-utils
|
||||
wayland-protocols
|
||||
wl-clipboard
|
||||
xdg-desktop-portal-hyprland
|
||||
)
|
||||
checkAndInstall "${deps[@]}"
|
||||
;;
|
||||
*)
|
||||
echo "$distro is not supported by this script!"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue