diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-02-03 20:07:27 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-02-03 20:07:27 +0900 |
| commit | 85076690c40353443a6e93aedd74830f0a17bf27 (patch) | |
| tree | 92f85fe39e9889d1c3d3d3e8c5f6be9015e50b05 | |
| parent | 0f519f6fc88ffe821d1d68b386e04cbac5cea519 (diff) | |
updated color coding
| -rwxr-xr-x | copy.sh | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -348,7 +348,7 @@ while true; do # for SDDM (sequoia_2) sddm_directory_3="/usr/share/sddm/themes/sequoia_2" if [ -d "$sddm_directory_3" ]; then - echo "sddm sequoia_2 theme exists. Editing to 12H format" 2>&1 | tee -a "$LOG" + echo "${YELLOW}sddm sequoia_2${RESET} theme exists. Editing to 12H format" 2>&1 | tee -a "$LOG" sudo sed -i 's|^clockFormat="HH:mm"|## clockFormat="HH:mm"|' "$sddm_directory_3/theme.conf" 2>&1 | tee -a "$LOG" || true @@ -643,12 +643,17 @@ fi sddm_sequioa="/usr/share/sddm/themes/sequoia_2" if [ -d "$sddm_sequioa" ]; then while true; do - read -rp "${CAT} SDDM sequoia_2 theme detected! Apply current wallpaper as SDDM background? (y/n)" SDDM_WALL + read -rp "${CAT} SDDM sequoia_2 theme detected! Apply current wallpaper as SDDM background? (y/n): " SDDM_WALL + + # Remove any leading/trailing whitespace or newlines from input + SDDM_WALL=$(echo "$SDDM_WALL" | tr -d '\n' | tr -d ' ') + case $SDDM_WALL in [Yy]) # Copy the wallpaper, ignore errors if the file exists or fails sudo cp -r "config/hypr/wallpaper_effects/.wallpaper_current" "/usr/share/sddm/themes/sequoia_2/backgrounds/default" || true echo "${NOTE} Current wallpaper applied as default SDDM background" 2>&1 | tee -a "$LOG" + break ;; [Nn]) echo "${NOTE} You chose not to apply the current wallpaper to SDDM." 2>&1 | tee -a "$LOG" @@ -662,6 +667,7 @@ if [ -d "$sddm_sequioa" ]; then fi + # additional wallpapers printf "\n%.0s" {1..1} echo "${MAGENTA}By default only a few wallpapers are copied${RESET}..." |
