From 0d74db72617f432979ba4580b425c1381dbdfd30 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Mon, 14 Aug 2023 10:36:46 +0200 Subject: [PATCH] Update --- 1-install.sh | 18 ++++++++++++++---- qtile/nixos_tutorial/.gitkeep | 0 qtile/{nixos_tutorial => simple}/autostart.sh | 0 qtile/{nixos_tutorial => simple}/config.py | 0 4 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 qtile/nixos_tutorial/.gitkeep rename qtile/{nixos_tutorial => simple}/autostart.sh (100%) rename qtile/{nixos_tutorial => simple}/config.py (100%) diff --git a/1-install.sh b/1-install.sh index 2593c43..6e5937d 100755 --- a/1-install.sh +++ b/1-install.sh @@ -10,10 +10,6 @@ # Install Script for dotfiles and configuration # yay must be installed # ------------------------------------------------------ - -# ------------------------------------------------------ -# Confirm Start -# ------------------------------------------------------ clear echo " _ _ __ _ _ " echo " __| | ___ | |_ / _(_) | ___ ___ " @@ -29,6 +25,20 @@ echo "Symbolic links will be created instead if the folder or files doesn't exis echo "If you want to overwrite your configuration please remove the correspondig folder in your .config first." echo "(For example ~/.config/qtile, etc.)" echo "" + +# ------------------------------------------------------ +# Check if yay is installed +# ------------------------------------------------------ +if sudo pacman -Qs yay > /dev/null ; then + echo "yay is installed. You can proceed with the installation" +else + echo "yay is not installed. Please install yay before proceed with the installation" + exit +fi + +# ------------------------------------------------------ +# Confirm Start +# ------------------------------------------------------ while true; do read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn case $yn in diff --git a/qtile/nixos_tutorial/.gitkeep b/qtile/nixos_tutorial/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/qtile/nixos_tutorial/autostart.sh b/qtile/simple/autostart.sh similarity index 100% rename from qtile/nixos_tutorial/autostart.sh rename to qtile/simple/autostart.sh diff --git a/qtile/nixos_tutorial/config.py b/qtile/simple/config.py similarity index 100% rename from qtile/nixos_tutorial/config.py rename to qtile/simple/config.py