-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsave.sh
More file actions
executable file
·67 lines (56 loc) · 3.03 KB
/
Copy pathsave.sh
File metadata and controls
executable file
·67 lines (56 loc) · 3.03 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
DOTFILES="$HOME/dotfiles"
echo "Saving dotfiles..."
# ~/.config dirs
cp -r ~/.config/hypr/* "$DOTFILES/hypr/"
cp -r ~/.config/waybar/* "$DOTFILES/waybar/"
cp -r ~/.config/walker/* "$DOTFILES/walker/"
cp -r ~/.config/theme/* "$DOTFILES/theme/"
cp -r ~/.config/sh.cider.genten/themes/* "$DOTFILES/theme/cider/" 2>/dev/null
cp -r ~/.config/btop/* "$DOTFILES/btop/"
cp -r ~/.config/nvim/* "$DOTFILES/nvim/" 2>/dev/null
cp -r ~/.config/ghostty/* "$DOTFILES/ghostty/" 2>/dev/null
cp -r ~/.config/fastfetch/* "$DOTFILES/fastfetch/" 2>/dev/null
cp -r ~/.config/gtk-3.0/* "$DOTFILES/gtk-3.0/" 2>/dev/null
cp -r ~/.config/gtk-4.0/* "$DOTFILES/gtk-4.0/" 2>/dev/null
cp -r ~/.config/wireplumber/* "$DOTFILES/wireplumber/" 2>/dev/null
cp -r ~/.config/micro/* "$DOTFILES/micro/" 2>/dev/null
cp -r ~/.config/wiremix/* "$DOTFILES/wiremix/" 2>/dev/null
cp -r ~/.config/magicpods/* "$DOTFILES/magicpods/" 2>/dev/null
cp -r ~/.config/mako/* "$DOTFILES/mako/" 2>/dev/null
cp -r ~/.config/swayosd/* "$DOTFILES/swayosd/" 2>/dev/null
cp -r ~/.config/wlogout/* "$DOTFILES/wlogout/" 2>/dev/null
cp -r ~/.config/screensaver/* "$DOTFILES/screensaver/" 2>/dev/null
cp -r ~/.config/scripts/* "$DOTFILES/scripts/" 2>/dev/null
# Shell
cp ~/.zshrc "$DOTFILES/zsh/"
# ~/.local/
cp -r ~/.local/bin/* "$DOTFILES/scripts/" 2>/dev/null
cp -r ~/.local/share/fonts/* "$DOTFILES/fonts/" 2>/dev/null
# System
cp /usr/local/bin/t2-suspend.sh "$DOTFILES/system/"
cp /usr/local/bin/t2-resume.sh "$DOTFILES/system/"
cp /etc/t2-suspend-fix/hardware.conf "$DOTFILES/system/"
sudo cp /boot/limine.conf "$DOTFILES/system/"
sudo chown "$USER:$USER" "$DOTFILES/system/limine.conf"
cp -r ~/.config/pipewire/* "$DOTFILES/pipewire/"
# Systemd
sudo cp /etc/systemd/sleep.conf "$DOTFILES/systemd/"
sudo cp /etc/systemd/logind.conf "$DOTFILES/systemd/"
sudo cp /etc/systemd/timesyncd.conf "$DOTFILES/systemd/"
sudo cp /etc/systemd/journald.conf "$DOTFILES/systemd/"
sudo cp /etc/systemd/system/t2-suspend.service "$DOTFILES/systemd/"
sudo cp /etc/systemd/system/t2-resume.service "$DOTFILES/systemd/"
sudo cp /etc/systemd/system/t2-fix-kbd-backlight.service "$DOTFILES/systemd/"
sudo cp /etc/systemd/system/reset-audio.service "$DOTFILES/systemd/"
sudo chown -R "$USER:$USER" "$DOTFILES/systemd/"
# Wallpapers
cp -r ~/.local/share/wallpapers/custom-wallpapers/* "$DOTFILES/wallpapers/" 2>/dev/null
# Screenshots/README
cp -r ~/dotfiles-screenshots/* "$DOTFILES/screenshots/"
# Commit and push
cd "$DOTFILES"
git add .
git commit -m "dotfiles update: $(date '+%Y-%m-%d %H:%M')"
git push
echo "Done."