18 lines
593 B
Bash
Executable File
18 lines
593 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
# Source and destination directories
|
|
SOURCE_DIR="../../assets/copy_stuff/"
|
|
DEST_DIR="$HOME"
|
|
# Check if source directory exists
|
|
if [ ! -d "$SOURCE_DIR" ]; then
|
|
echo "Error: Source directory $SOURCE_DIR does not exist."
|
|
exit 1
|
|
fi
|
|
# Use rsync to copy files, overwriting symlinks and existing files
|
|
# --no-group --no-owner preserves your user ownership
|
|
rsync -av --no-group --no-owner "$SOURCE_DIR/" "$DEST_DIR/"
|
|
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
|
|
|
|
pkill waybar && waybar &
|
|
hyprctl reload
|