-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate
More file actions
executable file
·30 lines (23 loc) · 824 Bytes
/
update
File metadata and controls
executable file
·30 lines (23 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
rsync -avR --delete $HOME/./dev/container $HOME/./dev/packages .
# Define the destination
DOTFILES_CONFIG_DIR="$HOME/dotfiles/config"
# List of folders to sync
CONFIGS=(
"btop" "cava" "fcitx5" "fontconfig" "gazatu.xyz"
"gtk-3.0" "gtk-4.0" "hypr" "kitty" "matugen"
"qt5ct" "qt6ct" "rofi" "spicetify" "waybar" "wireplumber"
"swaync" "swayosd" "obs-studio" "zed"
)
# Create the destination if it doesn't exist
mkdir -p "$DOTFILES_CONFIG_DIR"
echo "Updating dotfiles..."
for folder in "${CONFIGS[@]}"; do
if [ -d "$HOME/.config/$folder" ]; then
echo "Syncing: $folder"
rsync -a --delete "$HOME/.config/$folder" "$DOTFILES_CONFIG_DIR/"
else
echo "Warning: ~/.config/$folder not found, skipping."
fi
done
echo "Done! You can now git add, commit, and push."