From 15c815d71ebe826b0230e6495bdc6f49328c139f Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Sun, 10 Dec 2023 14:30:53 +0100 Subject: [PATCH] Add custom.conf --- .install/restore.sh | 12 +++++++++++- hypr/conf/custom.conf | 0 hypr/hyprland.conf | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 hypr/conf/custom.conf 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 # -----------------------------------------------------