-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopy-configs.sh
More file actions
executable file
·51 lines (48 loc) · 1.4 KB
/
Copy pathcopy-configs.sh
File metadata and controls
executable file
·51 lines (48 loc) · 1.4 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
echo "----------------------------------------------------"
echo "copying specified config files to ~/dotfiles"
echo "----------------------------------------------------"
DOTFILES_DIR="$HOME/public_dot_files/config"
cd "$DOTFILES_DIR" || { echo "Dotfiles directory not found!"; exit 1; }
CONFIGS_TO_BACKUP=(
"hypr"
"kitty"
"waybar"
"mako"
"wofi"
"Thunar"
"neofetch"
"starship.toml"
"eww"
"matugen"
"swaync"
"btop"
"cava"
"swayosd"
"waypaper"
"conky"
"fastfetch"
"wlogout"
"quickshell"
)
for config in "${CONFIGS_TO_BACKUP[@]}"; do
echo "Syncing: $config"
# Deleting old versions
rm -rf "$DOTFILES_DIR/$config"
# Copying new verison to ~/.config
cp -r "$HOME/.config/$config" "$DOTFILES_DIR/"
done
echo "Syncing: .bashrc"
rm -f "$DOTFILES_DIR/.bashrc"
cp "$HOME/.bashrc" "$DOTFILES_DIR/"
echo "Sycning Firefox css file"
rm -f "$DOTFILES_DIR/firefox/userChrome.css"
cp "$HOME/.mozilla/firefox/rlbtk3h4.AI-chatgpt/chrome/userChrome.css" "$DOTFILES_DIR/firefox/"
rm -f "$DOTFILES_DIR/firefox/userContent.css"
cp "$HOME/.mozilla/firefox/rlbtk3h4.AI-chatgpt/chrome/userContent.css" "$DOTFILES_DIR/firefox/"
echo "---------------------------------"
echo "--- Sync Complete! ---"
echo "--- now do - git add . ---"
echo "--- git commit -m 'update' ---"
echo "--- and git push !!! ---"
echo "---------------------------------"