-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdots_install.sh
65 lines (55 loc) · 1.82 KB
/
dots_install.sh
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
#!/usr/bin/env sh
# Welcome
echo "Welcome to my Qtile installation script. This script only works on Arch based distros"
# Deciding which branch you wnat to use
echo "Which theme do you want? You can see a preview of the different themes by taking a look at the different branches of my repo"
echo "1) All themes"
echo "2) Colorful"
echo "3) Gruvbox"
echo "4) Blue"
read THEME
# Installing extra packages
echo "Installing the necessary packages..."
sudo pacman -S nitrogen picom qtile rofi neofetch kitty neovim emacs git
echo "What AUR helper do you have installed?"
echo "1) yay"
echo "2) paru"
read AUR
if [[ $AUR == '1' ]]; then
echo "Installing qtile-extras with yay..."
yay -S qtile-extras
else
echo "Installing qtile-extras with paru..."
paru -S qtile-extras
fi
# Cloning the repo
echo "Cloning the repo..."
if [[ $THEME == '1' ]]; then
git clone -b gruvbox https://github.com/Aiclys/dotfiles ~/dots/gruvbox/
git clone -b colorful https://github.com/Aiclys/dotfiles ~/dots/colorful/
git clone -b blue https://github.com/Aiclys/dotfiles ~/dots/blue
elif [[ $THEME == '2' ]]; then
git clone -b colorful https://github.com/Aiclys/dotfiles ~/dots
elif [[ $THEME == '3' ]]; then
git clone -b gruvbox https://github.com/Aiclys/dotfiles ~/dots
elif [[ $THEME == '4' ]]; then
git clone -b blue https://github.com/Aiclys/dotfiles ~/dots
fi
# Backups
echo "Do you want to create a backup of your current qtile configuration?"
echo "1) Yes"
echo "2) No"
read BACKUP
if [[ $BACKUP == '1' ]]
then
echo "Creating backup..."
mkdir ~/.config/qtile_back
mv ~/.config/qtile ~/.config/qtile_back
else
echo "No backup made"
fi
# Moving my dotfiles to your .config folder
echo "Which part of my dots do you want to move to your .config?"
read WHICHPART
echo "Moving dots into the .config folder..."
mv ~/dots/qtile ~/.config