This commit is contained in:
Stephan Raabe 2023-11-26 11:57:21 +01:00
parent 3fd4cb10da
commit 7f7e04cdad
3 changed files with 4 additions and 2 deletions

View File

@ -12,5 +12,5 @@ cat <<"EOF"
EOF EOF
echo -e "${NONE}" echo -e "${NONE}"
echo "IMPORTANT: Please logout and reboot your system!" echo "Please logout and reboot your system!"
echo "" echo ""

View File

@ -13,7 +13,7 @@ cat <<"EOF"
EOF EOF
echo -e "${NONE}" 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 "Monitor settings could already be restored".
echo "" echo ""
else else

View File

@ -3,6 +3,7 @@
# ------------------------------------------------------ # ------------------------------------------------------
restorelist="" restorelist=""
monitorrestored=0
_showRestoreOptions() { _showRestoreOptions() {
echo "The following configurations can be transferred into the new installation:" echo "The following configurations can be transferred into the new installation:"
@ -21,6 +22,7 @@ _showRestoreOptions() {
fi fi
if [ -f ~/dotfiles/hypr/conf/monitor.conf ] && [ -d ~/dotfiles/hypr/conf/monitors/ ]; then if [ -f ~/dotfiles/hypr/conf/monitor.conf ] && [ -d ~/dotfiles/hypr/conf/monitors/ ]; then
restorelist+="~/dotfiles/hypr/conf/monitor.conf " restorelist+="~/dotfiles/hypr/conf/monitor.conf "
monitorrestored=1
fi fi
if [ -f ~/dotfiles/hypr/conf/animation.conf ] && [ -d ~/dotfiles/hypr/conf/animations/ ]; then if [ -f ~/dotfiles/hypr/conf/animation.conf ] && [ -d ~/dotfiles/hypr/conf/animations/ ]; then
restorelist+="~/dotfiles/hypr/conf/animation.conf " restorelist+="~/dotfiles/hypr/conf/animation.conf "