From a1d60b5f5ab03d47b95933c22da63108582a9e25 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 3 Apr 2025 11:31:40 +0200 Subject: [PATCH] install script: user_options.js -> user_options.jsonc --- install.sh | 12 ++++++------ update-dots.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index b9b1b2135..b852eb78a 100755 --- a/install.sh +++ b/install.sh @@ -181,15 +181,15 @@ esac case $SKIP_AGS in true) sleep 0;; *) - v rsync -av --delete --exclude '/user_options.js' .config/ags/ "$XDG_CONFIG_HOME"/ags/ - t="$XDG_CONFIG_HOME/ags/user_options.js" + v rsync -av --delete --exclude '/user_options.jsonc' .config/ags/ "$XDG_CONFIG_HOME"/ags/ + t="$XDG_CONFIG_HOME/ags/user_options.jsonc" if [ -f $t ];then echo -e "\e[34m[$0]: \"$t\" already exists.\e[0m" - # v cp -f .config/ags/user_options.js $t.new + # v cp -f .config/ags/user_options.jsonc $t.new existed_ags_opt=y else echo -e "\e[33m[$0]: \"$t\" does not exist yet.\e[0m" - v cp .config/ags/user_options.js $t + v cp .config/ags/user_options.jsonc $t existed_ags_opt=n fi ;; @@ -291,8 +291,8 @@ printf "\e[36mPress \e[30m\e[46m Super+/ \e[0m\e[36m for a list of keybinds\e[0m printf "\n" case $existed_ags_opt in - y) printf "\n\e[33m[$0]: Warning: \"$XDG_CONFIG_HOME/ags/user_options.js\" already existed before and we didn't overwrite it. \e[0m\n" -# printf "\e[33mPlease use \"$XDG_CONFIG_HOME/ags/user_options.js.new\" as a reference for a proper format.\e[0m\n" + y) printf "\n\e[33m[$0]: Warning: \"$XDG_CONFIG_HOME/ags/user_options.jsonc\" already existed before and we didn't overwrite it. \e[0m\n" +# printf "\e[33mPlease use \"$XDG_CONFIG_HOME/ags/user_options.jsonc.new\" as a reference for a proper format.\e[0m\n" ;;esac case $existed_hypr_conf_firstrun in y) printf "\n\e[33m[$0]: Warning: \"$XDG_CONFIG_HOME/hypr/hyprland.conf\" already existed before. As it seems it is your firstrun, we replaced it with a new one. \e[0m\n" diff --git a/update-dots.sh b/update-dots.sh index 743a03526..c38f7736b 100644 --- a/update-dots.sh +++ b/update-dots.sh @@ -19,7 +19,7 @@ RESET="\033[0m" # Define paths to update folders=(".config" ".local/bin" ".local/share" ".local/state") -excludes=(".config/hypr/custom" ".config/ags/user_options.js" ".config/hypr/hyprland.conf") +excludes=(".config/hypr/custom" ".config/ags/user_options.jsonc" ".config/hypr/hyprland.conf") get_checksum() { # Get the checksum of a specific file