diff --git a/.install/restore.sh b/.install/restore.sh index 669c730..c86d272 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/conf/custom.conf ]; then + restorelist+="~/dotfiles/hypr/conf/custom.conf " + selectedlist+="~/dotfiles/hypr/conf/custom.conf," + fi if [ -f ~/dotfiles/hypr/conf/keyboard.conf ]; then restorelist+="~/dotfiles/hypr/conf/keyboard.conf " selectedlist+="~/dotfiles/hypr/conf/keyboard.conf," @@ -109,12 +113,18 @@ _startRestore() { fi fi if [[ $profile == *"Hyprland"* ]]; then + 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/ + echo "Hyprland custom.conf restored!" + fi + fi if [[ $restoreselect == *"~/dotfiles/hypr/conf/keyboard.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then if [ -f ~/dotfiles/hypr/conf/keyboard.conf ]; then cp ~/dotfiles/hypr/conf/keyboard.conf ~/dotfiles-versions/$version/hypr/conf/ echo "Hyprland keyboard.conf restored!" fi - fi + fi if [[ $restoreselect == *"~/dotfiles/hypr/conf/monitor.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then if [ -f ~/dotfiles/hypr/conf/monitor.conf ]; then cp ~/dotfiles/hypr/conf/monitor.conf ~/dotfiles-versions/$version/hypr/conf/ diff --git a/hypr/conf/custom.conf b/hypr/conf/custom.conf new file mode 100644 index 0000000..e69de29 diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 285baf3..cddb0b7 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -48,6 +48,11 @@ source = ~/dotfiles/hypr/conf/windowrule.conf # ----------------------------------------------------- source = ~/dotfiles/hypr/conf/animation.conf +# ----------------------------------------------------- +# Animation +# ----------------------------------------------------- +source = ~/dotfiles/hypr/conf/custom.conf + # ----------------------------------------------------- # Environment for xdg-desktop-portal-hyprland # -----------------------------------------------------