You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: copy.sh
+13-13
Original file line number
Diff line number
Diff line change
@@ -182,7 +182,7 @@ NOTE:
182
182
echo"${NOTE} kb_layout $new_layout configured in settings."2>&1| tee -a "$LOG"
183
183
break ;;
184
184
*)
185
-
echo"Please enter either 'y' or 'n'." ;;
185
+
echo"${ERROR}Please enter either 'y' or 'n'." ;;
186
186
esac
187
187
done
188
188
@@ -212,7 +212,7 @@ while true; do
212
212
break
213
213
;;
214
214
*)
215
-
echo"Invalid choice. Please enter 1 for ≤ 1080p or 2 for ≥ 1440p."
215
+
echo"${ERROR}Invalid choice. Please enter 1 for ≤ 1080p or 2 for ≥ 1440p."
216
216
;;
217
217
esac
218
218
done
@@ -292,15 +292,15 @@ while true; do
292
292
sudo sed -i 's|^## HourFormat="hh:mm AP"|HourFormat="hh:mm AP"|'"$sddm_folder_2/theme.conf"2>&1| tee -a "$LOG"||true
293
293
sudo sed -i 's|^HourFormat="HH:mm"|## HourFormat="HH:mm"|'"$sddm_folder_2/theme.conf"2>&1| tee -a "$LOG"||true
294
294
295
-
echo"12H format set to SDDM theme successfully."2>&1| tee -a "$LOG"
295
+
echo"${OK}12H format set to SDDM theme successfully."2>&1| tee -a "$LOG"
296
296
fi
297
297
298
298
break
299
299
elif [[ "$answer"=="n" ]];then
300
300
echo"You chose not to change to 12H format."2>&1| tee -a "$LOG"
301
301
break
302
302
else
303
-
echo"Invalid choice. Please enter y for yes or n for no."
303
+
echo"${ERROR}Invalid choice. Please enter y for yes or n for no."
304
304
fi
305
305
done
306
306
@@ -379,19 +379,19 @@ for DIR2 in $DIRS; do
379
379
380
380
if [ -d"$DIRPATH" ];then
381
381
whiletrue;do
382
-
read -p "${CAT}Config directory $DIR2 already exists. Do you want to replace it? (Y/N): " CHOICE
382
+
read -p "${CAT}${ORANGE}$DIR2${RESET} config found in ~/.config/ Do you want to replace ${ORANGE}$DIR2${RESET} config? (Y/N): " CHOICE
383
383
case"$CHOICE"in
384
384
[Yy]* )
385
385
BACKUP_DIR=$(get_backup_dirname)
386
-
echo -e "${NOTE} - Config for $DIR2 found, attempting to back up."
386
+
echo -e "${NOTE} - Config for ${YELLOW}$DIR2${RESET} found, attempting to back up."
387
387
388
388
mv "$DIRPATH""$DIRPATH-backup-$BACKUP_DIR"2>&1| tee -a "$LOG"
389
389
if [ $?-eq 0 ];then
390
390
echo -e "${NOTE} - Backed up $DIR2 to $DIRPATH-backup-$BACKUP_DIR."2>&1| tee -a "$LOG"
391
391
392
-
cp -r config/"$DIR2"~/.config/"$DIR2"2>&1| tee -a "$LOG"
392
+
cp -r config/"$DIR2"~/.config/"$DIR2"
393
393
if [ $?-eq 0 ];then
394
-
echo -e "${OK} - Replaced $DIR2 with new configuration."
394
+
echo -e "${OK} - Replaced $DIR2 with new configuration."2>&1| tee -a "$LOG"
395
395
else
396
396
echo"${ERROR} - Failed to copy $DIR2."2>&1| tee -a "$LOG"
397
397
exit 1
@@ -404,7 +404,7 @@ for DIR2 in $DIRS; do
404
404
;;
405
405
[Nn]* )
406
406
# Skip the directory
407
-
echo -e "${NOTE} - Skipping $DIR2."2>&1| tee -a "$LOG"
407
+
echo -e "${NOTE} - Skipping ${ORANGE}$DIR2${RESET}"2>&1| tee -a "$LOG"
408
408
break
409
409
;;
410
410
* )
@@ -416,9 +416,9 @@ for DIR2 in $DIRS; do
416
416
# Copy new config if directory does not exist
417
417
cp -r config/"$DIR2"~/.config/"$DIR2"2>&1| tee -a "$LOG"
418
418
if [ $?-eq 0 ];then
419
-
echo"${OK} - Copy completed for $DIR2."2>&1| tee -a "$LOG"
419
+
echo"${OK} - Copy completed for ${YELLOW}$DIR2${RESET}"2>&1| tee -a "$LOG"
420
420
else
421
-
echo"${ERROR} - Failed to copy $DIR2."2>&1| tee -a "$LOG"
421
+
echo"${ERROR} - Failed to copy ${YELLOW}$DIR2${RESET}"2>&1| tee -a "$LOG"
422
422
exit 1
423
423
fi
424
424
fi
@@ -428,7 +428,7 @@ printf "\n%.0s" {1..1}
428
428
429
429
# copying Wallpapers
430
430
mkdir -p ~/Pictures/wallpapers
431
-
cp -r wallpapers ~/Pictures/ && { echo"${OK}Copy of wallpapers completed!"; } || { echo"${ERROR} Failed to copy wallpapers.";exit 1; } 2>&1| tee -a "$LOG"
431
+
cp -r wallpapers ~/Pictures/ && { echo"${OK} some wallpapers compied!"; } || { echo"${ERROR} Failed to copy some wallpapers.";exit 1; } 2>&1| tee -a "$LOG"
432
432
433
433
# Set some files as executable
434
434
chmod +x ~/.config/hypr/scripts/*2>&1| tee -a "$LOG"
@@ -486,7 +486,7 @@ while true; do
486
486
fi
487
487
;;
488
488
[Nn])
489
-
echo"You chose not to download additional wallpapers."2>&1| tee -a "$LOG"
489
+
echo"${NOTE}You chose not to download additional wallpapers."2>&1| tee -a "$LOG"
0 commit comments