Add custom.conf

This commit is contained in:
Stephan Raabe 2023-12-10 14:30:53 +01:00
parent 830fe0ecdc
commit 15c815d71e
3 changed files with 16 additions and 1 deletions

View File

@ -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,6 +113,12 @@ _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/

0
hypr/conf/custom.conf Normal file
View File

View File

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