From 7f7e04cdad4a6240f5632a36693e8ee23d80d5cf Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Sun, 26 Nov 2023 11:57:21 +0100 Subject: [PATCH] Updates --- .install/done.sh | 2 +- .install/monitor.sh | 2 +- .install/restore.sh | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.install/done.sh b/.install/done.sh index caccee5..53fa438 100644 --- a/.install/done.sh +++ b/.install/done.sh @@ -12,5 +12,5 @@ cat <<"EOF" EOF echo -e "${NONE}" -echo "IMPORTANT: Please logout and reboot your system!" +echo "Please logout and reboot your system!" echo "" diff --git a/.install/monitor.sh b/.install/monitor.sh index 377964e..fa958ba 100644 --- a/.install/monitor.sh +++ b/.install/monitor.sh @@ -13,7 +13,7 @@ cat <<"EOF" EOF echo -e "${NONE}" - if [ -f ~/dotfiles/hypr/conf/monitor.conf ] && [ -d ~/dotfiles/hypr/conf/monitors/ ]; then + if [ "$monitorrestored" == "1" ]; then echo "Monitor settings could already be restored". echo "" else diff --git a/.install/restore.sh b/.install/restore.sh index 4007db4..19e1c93 100755 --- a/.install/restore.sh +++ b/.install/restore.sh @@ -3,6 +3,7 @@ # ------------------------------------------------------ restorelist="" +monitorrestored=0 _showRestoreOptions() { echo "The following configurations can be transferred into the new installation:" @@ -21,6 +22,7 @@ _showRestoreOptions() { fi if [ -f ~/dotfiles/hypr/conf/monitor.conf ] && [ -d ~/dotfiles/hypr/conf/monitors/ ]; then restorelist+="~/dotfiles/hypr/conf/monitor.conf " + monitorrestored=1 fi if [ -f ~/dotfiles/hypr/conf/animation.conf ] && [ -d ~/dotfiles/hypr/conf/animations/ ]; then restorelist+="~/dotfiles/hypr/conf/animation.conf "