-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
70 lines (57 loc) · 1.73 KB
/
Copy pathinstall.sh
File metadata and controls
70 lines (57 loc) · 1.73 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
68
69
70
#!/bin/bash
# Set script to exit on: error or pipefail
set -eo pipefail
# Clone the dotfiles repo
echo "Cloning repo: https://github.com/DoubleDotStudios/SwayFX-Dotfiles"
git clone --depth=1 https://github.com/DoubleDotStudios/SwayFX-Dotfiles
echo "Done!\n"
# Create a backup of config files
echo "Backing up config files..."
mkdir ~/.backup
mv ~/.config ~/.backup/
mv ~/.zshrc ~/.backup/
echo "Done!\n"
# Move configs into ~/.config
echo "Moving config files to ~/.config..."
mkdir -p ~/.config
mv ./config/* ~/.config/
echo "Done!\n"
# Move scripts into ~/.local/bin
echo "Moving scripts to ~/.local/bin..."
mkdir -p ~/.local/bin
mv ./bin/* ~/.local/bin/
echo "Done!\n"
# Move rofi scripts to ~/.local/share/rofi
echo "Moving rofi files to ~/.local/share/rofi..."
mkdir -p ~/.local/share/rofi
mv ./rofi/* ~/.local/share/rofi/
echo "Done!\n"
# Move .zshrc scripts to ~
echo "Moving .zshrc to ~..."
mv ./zshrc ~
echo "Done!\n"
# Move fonts to ~/.local/share/fonts
echo "Moving fonts to ~/.local/share/fonts..."
mkdir -p ~/.local/share/fonts
mv ./fonts/* ~/.local/share/fonts/
echo "Done!\n"
# Rebuild font cache
echo "Rebuilding font cache..."
fc-cache -f -v
echo "Done!\n"
# Move cursors and icons to ~/.icons
echo "Moving cursors and icons to ~/.icons"
mv ./icons/* ~/.icons/
echo "Done!\n"
# Move wallpapers to ~/Pictures/Wallpapers
echo "Moving wallpapers to ~/Pictures/Wallpapers"
mkdir -p ~/Pictures/Wallpapers
mv ./wallpapers/* ~/Pictures/Wallpapers/
echo "Done!\n"
# Install SolarVim
echo "Installing SolarVim..."
git clone https://github.com/DoubleDotStudios/SolarVim.git
rm -r ./SolarVim/README.md ./SolarVim/assets ./SolarVim/.gitignore ./SolarVim/.git
mv ./SolarVim/* ~/.config/nvim/
echo "Done!\n"
echo "\nSwayFX dotfiles installed successfully!"