From 7aad60eb2c2d19e4f99a97af75559b4829989869 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 12 May 2026 10:31:40 +0200 Subject: [PATCH] install script: add check for hyprland.conf rename --- sdata/subcmd-install/3.files-legacy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdata/subcmd-install/3.files-legacy.sh b/sdata/subcmd-install/3.files-legacy.sh index 4f84c13d2..eb04b4a0f 100644 --- a/sdata/subcmd-install/3.files-legacy.sh +++ b/sdata/subcmd-install/3.files-legacy.sh @@ -48,7 +48,10 @@ case "${SKIP_HYPRLAND}" in true) sleep 0;; *) install_dir__sync dots/.config/hypr/hyprland "$XDG_CONFIG_HOME"/hypr/hyprland - mv "${XDG_CONFIG_HOME}/hypr/hyprland.conf" "${XDG_CONFIG_HOME}/hypr/hyprland.conf.old" # disable old config + if [ -f "${XDG_CONFIG_HOME}/hypr/hyprland.conf" ]; then + mv "${XDG_CONFIG_HOME}/hypr/hyprland.conf" "${XDG_CONFIG_HOME}/hypr/hyprland.conf.old" # disable old config + echo 'hyprland.conf has been renamed to hyprland.conf.old. This is to allow the new lua config to load.' + fi for i in hyprlock.conf ; do install_file__auto_backup "dots/.config/hypr/$i" "${XDG_CONFIG_HOME}/hypr/$i" done