-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·90 lines (74 loc) · 2.21 KB
/
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
install_pacman=(
neovim
#nemo
stow
btop
yay
fzf
eza
ffmpeg
zip
unzip
tmux
)
install_yay=(
#qwinff
vesktop
brave-bin
)
read -p "$(tput setaf 6)Do you want to configure Wifi?(y/n)$(tput sgr0)" wifi
# Pacman candy etc.
sudo cp -f ~/dotfiles/pacman.conf /etc/
sudo cp -f ~/dotfiles/makepkg.conf /etc/
sudo pacman -Syyu --noconfirm
# installing pacman and yay packages
for PKG1 in "${install_pacman[@]}"; do
sudo pacman -S --noconfirm "$PKG1"
done
for PKG1 in "${install_yay[@]}"; do
yay -S --noconfirm "$PKG1"
done
# removing some general configs
rm ~/.config/btop/btop.conf
rm ~/.config/hypr/configs/Keybinds.conf
rm ~/.config/hypr/UserConfigs/UserSettings.conf
rm ~/.config/hypr/UserConfigs/WindowRules.conf
# ZSH and oh-my-zsh
rm ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
rm ~/.config/hypr/UserScripts/QuickEdit.sh
# preparing nvim
mkdir ~/.config/nvim/
rm -r -f ~/.config/nvim/
cd $HOME
# rofi
rm ~/.config/rofi/config-compact.rasi
# waybar config files
rm ~/.config/waybar/configs/\[TOP\]\ Default_v3
rm ~/.config/waybar/configs/\[TOP\]\ Default\ Laptop_v2
cp ~/dotfiles/.config/waybar/configs/\[TOP\]\ Default_v3 ~/.config/waybar/configs/
cp ~/dotfiles/.config/waybar/configs/\[TOP\]\ Default\ Laptop_v2 ~/.config/waybar/configs/
# Tmxu setup
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
cd ~/dotfiles && stow .
echo
echo -e "$(tput setaf 2)Installation Completed\n$(tput sgr0)"
# Wifi
if [ "$wifi" != "y" ]; then
echo -e "$(tput setaf 2)Installing NetworkManager\n$(tput sgr0)"
sudo pacman -S --noconfirm networkmanager
echo
echo -e "$(tput setaf 2)Now configuring Wifi\n$(tput sgr0)"
sudo systemctl start NetworkManager
sudo nmcli r wifi on
echo -e "$(tput setaf 2)Configured Wifi\n$(tput sgr0)"
fi
# SSH
echo -e "$(tput setaf 2)Configuring ssh to listen on port 123\n$(tput sgr0)"
sudo systemctl start sshd.service
sudo rm /etc/ssh/sshd_config
sudo cp ~/dotfiles/sshd_config /etc/ssh/
sudo systemctl restart sshd.service
echo -e "$(tput setaf 2)Configured ssh\n$(tput sgr0)"