This commit is contained in:
pika 2025-05-22 12:08:01 +02:00
parent 3dd0a03a2c
commit 6ef0786cae

View file

@ -82,31 +82,31 @@ __pre_stow__() {
askThings() { askThings() {
if [ ! -d ./dotfiles/.config/tmux/ ] && [ ! -d ./dotfiles/.config/zellij/ ]; then if [ ! -d ./dotfiles/.config/tmux/ ] && [ ! -d ./dotfiles/.config/zellij/ ]; then
choose askMultiPlexer "Choose a menu" tmux zellij none </dev/tty choose plexer "Choose a menu" tmux zellij none </dev/tty
# read -r askMultiPlexer </dev/tty # read -r askMultiPlexer </dev/tty
fi fi
if [ ! -d ./dotfiles/.config/rofi/ ] && [ ! -d ./dotfiles/.config/tofi/ ]; then if [ ! -d ./dotfiles/.config/rofi/ ] && [ ! -d ./dotfiles/.config/tofi/ ]; then
choose "Choose a menu" rofi tofi none </dev/tty choose menu "Choose a menu" rofi tofi none </dev/tty
# read -r askMenu </dev/tty # read -r askMenu </dev/tty
fi fi
if [ ! -d ./dotfiles/.config/yazi/ ] && [ ! -d ./dotfiles/.config/lf/ ] && [ ! -d ./dotfiles/.config/ranger/ ]; then if [ ! -d ./dotfiles/.config/yazi/ ] && [ ! -d ./dotfiles/.config/lf/ ] && [ ! -d ./dotfiles/.config/ranger/ ]; then
choose "Choose a cli filemanager" yazi ranger lf </dev/tty choose filemgr "Choose a cli filemanager" yazi ranger lf </dev/tty
# read -r askFilemgr </dev/tty # read -r askFilemgr </dev/tty
fi fi
if $arch; then if [ ! -d ./dotfiles/.config/waybar/ ] && [ ! -d ./dotfiles/.config/gBar/ ] && [ ! -d ./dotfiles/.config/hyprpanel/ ]; then
if [ ! -d ./dotfiles/.config/waybar/ ] && [ ! -d ./dotfiles/.config/gBar/ ] && [ ! -d ./dotfiles/.config/hyprpanel/ ]; then if $arch; then
choose "Choose a bar provider" waybar gbar hyprpanel </dev/tty choose bar "Choose a bar provider" waybar gbar hyprpanel </dev/tty
# read -r askBar </dev/tty # read -r askBar </dev/tty
else
choose bar "Choose a bar provider" waybar gbar </dev/tty
fi fi
else
choose "Choose a bar provider" waybar gbar </dev/tty
fi fi
if [ ! -d ./dotfiles/.config/foot/ ] && [ ! -d ./dotfiles/.config/ghostty/ ] && [ ! -d ./dotfiles/.config/alacritty/ ] && [ ! -d ./dotfiles/.config/kitty/ ]; then if [ ! -d ./dotfiles/.config/foot/ ] && [ ! -d ./dotfiles/.config/ghostty/ ] && [ ! -d ./dotfiles/.config/alacritty/ ] && [ ! -d ./dotfiles/.config/kitty/ ]; then
choose "Choose a Terminal config" alacritty foot ghostty kitty </dev/tty choose terminal "Choose a Terminal config" alacritty foot ghostty kitty </dev/tty
# read -r askTerminal </dev/tty # read -r askTerminal </dev/tty
fi fi
@ -118,8 +118,8 @@ askThings() {
# read -r askOptional </dev/tty # read -r askOptional </dev/tty
if [ ! -d "$HOME/.config/nvim" ]; then if [ ! -d "$HOME/.config/nvim" ]; then
choose "Do you also want to install a neovim config?" default mini astro none choose askNvim "Do you also want to install a neovim config?" default mini astro none </dev/tty
read -r askNvim </dev/tty # read -r askNvim </dev/tty
fi fi
} }
@ -176,76 +176,11 @@ cloneDots() {
__validate__() { __validate__() {
if askThings; then if askThings; then
case "$askMultiPlexer" in [[ -n "$plexer" ]] && cloneDots "$plexer"
tmux) [[ -n "$menu" ]] && cloneDots "$menu"
cloneDots "tmux" [[ -n "$filemgr" ]] && cloneDots "$filemgr"
plexer="tmux" [[ -n "$bar" ]] && cloneDots "$bar"
;; [[ -n "$terminal" ]] && cloneDots "$terminal"
zellij)
cloneDots "zellij"
plexer="zellij"
;;
esac
case "$askMenu" in
rofi)
cloneDots "rofi"
menu="rofi"
;;
tofi)
cloneDots "tofi"
menu="tofi"
;;
esac
case "$askFilemgr" in
yazi)
cloneDots "yazi"
filemgr="yazi"
;;
ranger)
cloneDots "ranger"
filemgr="ranger"
;;
lf)
cloneDots "lf"
filemgr="lf"
;;
esac
case "$askBar" in
waybar)
cloneDots "waybar"
bar="waybar"
;;
gbar)
cloneDots "gBar"
bar="gBar"
;;
hyprpanel)
cloneDots "hyprpanel"
bar="hyprpanel"
;;
esac
case "$askTerminal" in
ghostty)
cloneDots "ghostty"
terminal="ghostty"
;;
kitty)
cloneDots "kitty"
terminal="kitty"
;;
alacritty)
cloneDots "alacritty"
terminal="alacritty"
;;
foot)
cloneDots "foot"
terminal="foot"
;;
esac
case "$askNvim" in case "$askNvim" in
default) default)