From 699ccf1461205118b23c94bae18cffa3bae90c08 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Sun, 13 Aug 2023 11:47:42 +0200 Subject: [PATCH] Updates --- 1-install.sh | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/1-install.sh b/1-install.sh index f0f8eb3..74aa02a 100755 --- a/1-install.sh +++ b/1-install.sh @@ -175,7 +175,6 @@ _installSymLink() { fi } -_installSymLink ~/.config/qtile ~/dotfiles/qtile/ ~/.config _installSymLink ~/.config/alacritty ~/dotfiles/alacritty/ ~/.config _installSymLink ~/.config/picom ~/dotfiles/picom/ ~/.config _installSymLink ~/.config/rofi ~/dotfiles/rofi/ ~/.config @@ -185,6 +184,28 @@ _installSymLink ~/.config/polybar ~/dotfiles/polybar/ ~/.config _installSymLink ~/.config/dunst ~/dotfiles/dunst/ ~/.config _installSymLink ~/.config/starship.toml ~/dotfiles/starship/starship.toml ~/.config/starship.toml +# ------------------------------------------------------ +# Install qtile configuration +# ------------------------------------------------------ +echo "" +echo "-> Install Qtile configuration" +while true; do + read -p "Do you want to install/replace the Qtile configuration? (Yy/Nn): " yn + case $yn in + [Yy]* ) + if [ -d ~/.config/qtile/ ]; then + rm -r ~/.config/qtile/ + echo "qtile directory removed" + fi + _installSymLink ~/.config/qtile ~/dotfiles/qtile/ ~/.config + break;; + [Nn]* ) + echo "Installation/Replacement of Qtile configuration skipped." + break;; + * ) echo "Please answer yes or no.";; + esac +done + # ------------------------------------------------------ # Install .bashrc # ------------------------------------------------------ @@ -204,7 +225,6 @@ while true; do esac done _installSymLink ~/.bashrc ~/dotfiles/.bashrc ~/.bashrc - # ------------------------------------------------------ # Install Theme, Icons and Cursor # ------------------------------------------------------