From a3322b9b47f0c36abf25e6ba12be6021ab44e8d6 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Sat, 2 Mar 2024 21:19:22 +0100 Subject: [PATCH] Updates --- .install/restore.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.install/restore.sh b/.install/restore.sh index 7a4cf44..d9421ca 100755 --- a/.install/restore.sh +++ b/.install/restore.sh @@ -20,6 +20,10 @@ _showRestoreOptions() { selectedlist+="~/dotfiles/.settings," fi if [[ $profile == *"Hyprland"* ]]; then + if [ -f ~/dotfiles/hypr/hypridle.conf ]; then + restorelist+="~/dotfiles/hypr/hypridle.conf " + selectedlist+="~/dotfiles/hypr/hypridle.conf," + fi if [ -f ~/dotfiles/hypr/conf/custom.conf ]; then restorelist+="~/dotfiles/hypr/conf/custom.conf " selectedlist+="~/dotfiles/hypr/conf/custom.conf," @@ -108,6 +112,12 @@ _startRestore() { fi fi if [[ $profile == *"Hyprland"* ]]; then + if [[ $restoreselect == *"~/dotfiles/hypr/hypridle.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then + if [ -f ~/dotfiles/hypr/hypridle.conf ]; then + cp ~/dotfiles/hypr/hypridle.conf ~/dotfiles-versions/$version/hypr/ + echo "Hyprland hypridle.conf restored!" + fi + fi if [[ $restoreselect == *"~/dotfiles/hypr/conf/custom.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then if [ -f ~/dotfiles/hypr/conf/custom.conf ]; then cp ~/dotfiles/hypr/conf/custom.conf ~/dotfiles-versions/$version/hypr/conf/