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
echo -e "${NONE}"
echo "IMPORTANT: Please logout and reboot your system!"
echo "Please logout and reboot your system!"
echo ""

View File

@ -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

View File

@ -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 "