changed the install script
This commit is contained in:
parent
527aedf4c7
commit
6e353be366
1 changed files with 262 additions and 244 deletions
22
install.sh
22
install.sh
|
@ -65,7 +65,16 @@ get_packager() {
|
||||||
;;
|
;;
|
||||||
"pacman")
|
"pacman")
|
||||||
$_sudo pacman -Syy
|
$_sudo pacman -Syy
|
||||||
|
if command_exists paru; then
|
||||||
|
echo_info "Using paru as aur helper"
|
||||||
|
_install() { paru -S --noconfirm "$@"; }
|
||||||
|
elif command_exists yay; then
|
||||||
|
echo_info "Using yay as aur helper"
|
||||||
|
_install() { yay -S --noconfirm "$@"; }
|
||||||
|
else
|
||||||
|
echo_info "Using no aur helper!"
|
||||||
_install() { $_sudo pacman -S --noconfirm "$@"; }
|
_install() { $_sudo pacman -S --noconfirm "$@"; }
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
"dnf")
|
"dnf")
|
||||||
$_sudo dnf update
|
$_sudo dnf update
|
||||||
|
@ -140,17 +149,25 @@ __pre_stow__() {
|
||||||
}
|
}
|
||||||
|
|
||||||
askThings() {
|
askThings() {
|
||||||
|
if [ ! -d ./dotfiles/.config/rofi/ ] && [ ! -d ./dotfiles/.config/tofi/ ]; then
|
||||||
echo_info "Choose a menu - [r]ofi || [t]ofi"
|
echo_info "Choose a menu - [r]ofi || [t]ofi"
|
||||||
read -r askMenu </dev/tty
|
read -r askMenu </dev/tty
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d ./dotfiles/.config/yazi/ ] && [ ! -d ./dotfiles/.config/lf/ ] && [ ! -d ./dotfiles/.config/ranger/ ]; then
|
||||||
echo_info "Choose a cli filemanager - [y]azi || [r]anger || [l]f"
|
echo_info "Choose a cli filemanager - [y]azi || [r]anger || [l]f"
|
||||||
read -r askFilemgr </dev/tty
|
read -r askFilemgr </dev/tty
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d ./dotfiles/.config/waybar/ ] && [ ! -d ./dotfiles/.config/gBar/ ] && [ ! -d ./dotfiles/.config/hyprpanel/ ]; then
|
||||||
echo_info "Choose a bar provider - [w]aybar || [g]Bar || [h]yprpanel"
|
echo_info "Choose a bar provider - [w]aybar || [g]Bar || [h]yprpanel"
|
||||||
read -r askBar </dev/tty
|
read -r askBar </dev/tty
|
||||||
|
fi
|
||||||
|
|
||||||
echo_info "Choose a Terminal config (.)[G]hostty, [K]itty, [A]lacritty(.)"
|
if [ ! -d ./dotfiles/.config/foot/ ] && [ ! -d ./dotfiles/.config/ghostty/ ] && [ ! -d ./dotfiles/.config/alacritty/ ] && [ ! -d ./dotfiles/.config/kitty/ ]; then
|
||||||
|
echo_info "Choose a Terminal config - [f]oot || [g]hostty || [k]itty || [a]lacritty -"
|
||||||
read -r askTerminal </dev/tty
|
read -r askTerminal </dev/tty
|
||||||
|
fi
|
||||||
|
|
||||||
echo_info "Do you also want to install optional packages? (y/n)"
|
echo_info "Do you also want to install optional packages? (y/n)"
|
||||||
read -r askOptional </dev/tty
|
read -r askOptional </dev/tty
|
||||||
|
@ -221,13 +238,14 @@ __validate__() {
|
||||||
case "$askBar" in
|
case "$askBar" in
|
||||||
[wW] | waybar) cloneDots "waybar" ;;
|
[wW] | waybar) cloneDots "waybar" ;;
|
||||||
[gG] | gBar | gbar) cloneDots "gBar" ;;
|
[gG] | gBar | gbar) cloneDots "gBar" ;;
|
||||||
# [hH] | hyprpanel) cloneDots "hyprpanel" ;;
|
[hH] | hyprpanel) cloneDots "hyprpanel" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$askTerminal" in
|
case "$askTerminal" in
|
||||||
[gG] | ghostty) cloneDots "ghostty" ;;
|
[gG] | ghostty) cloneDots "ghostty" ;;
|
||||||
[kK] | kitty) cloneDots "kitty" ;;
|
[kK] | kitty) cloneDots "kitty" ;;
|
||||||
[aA] | alacritty) cloneDots "alacritty" ;;
|
[aA] | alacritty) cloneDots "alacritty" ;;
|
||||||
|
[fF] | foot) cloneDots "foot" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$askNvim" in
|
case "$askNvim" in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue