diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-07-17 22:16:55 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-07-17 22:16:55 +0900 |
| commit | cc779038f9ef892b487963e6f71ea9b4f17a49b9 (patch) | |
| tree | 3b6ddf4a127c7fce370686e04bba335f31ed75de | |
| parent | d36df085bf093ce6f8092eeb6e6878d9ad2791d0 (diff) | |
updated quick shell config copy
| -rwxr-xr-x | copy.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -666,16 +666,16 @@ done printf "\n%.0s" {1..1} # quickshell (ags alternative) -# Check if quickshell is running -if pgrep -x "qs" >/dev/null; then - echo -e "${NOTE} - ${YELLOW}quickshell${RESET} is currently installed and running." +# Check if quickshell is installed +if command -v qs >/dev/null 2>&1; then + echo -e "${NOTE} - ${YELLOW}quickshell${RESET} is detected as installed" DIRPATH_QS="$HOME/.config/quickshell" if [ ! -d "$DIRPATH_QS" ]; then echo "${INFO} - quickshell config not found, copying new config." if [ -d "config/quickshell" ]; then - cp -r "config/quickshell/" "$DIRPATH" 2>&1 | tee -a "$LOG" + cp -r "config/quickshell/" "$DIRPATH_QS" 2>&1 | tee -a "$LOG" fi else read -p "${CAT} Do you want to overwrite your existing ${YELLOW}quickshell${RESET} config? [y/N] " answer_qs @@ -684,7 +684,7 @@ if pgrep -x "qs" >/dev/null; then BACKUP_DIR=$(get_backup_dirname) mv "$DIRPATH_QS" "$DIRPATH_QS-backup-$BACKUP_DIR" 2>&1 | tee -a "$LOG" echo -e "${NOTE} - Backed up quickshell to $DIRPATH_QS-backup-$BACKUP_DIR" - + cp -r "config/quickshell/" "$DIRPATH_QS" 2>&1 | tee -a "$LOG" if [ $? -eq 0 ]; then echo "${OK} - ${YELLOW}quickshell${RESET} overwritten successfully." |
