-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.sh
executable file
·148 lines (131 loc) · 4.9 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#!/bin/bash
DIR=$HOME/.config/bspwm
CONFIG_DIR=$HOME/.config
bold=$(tput bold)
normal=$(tput sgr0)
clear
#Dependencies
echo -e "\e[1;31m${bold}Installing dependencies${normal}\e[0m"
yay -Syu --noconfirm 'sxhkd' 'rofi' 'dunst' 'alsa-utils' 'spotifywm-git'\
'maim' 'xclip' 'viewnior' 'feh' 'gd' 'bluez' 'trash-cli'\
'ksuperkey' 'betterlockscreen' 'xfce-polkit' 'xfce4-power-manager' 'brightnessctl'\
'xsettingsd' 'xorg-xsetroot' 'wmname' 'git' 'bspwm' 'wpgtk' 'meson'\
'zathura' 'zathura-pdf-mupdf' 'pywal-discord-git' 'bpytop' 'ninja'\
'neovim' 'qutebrowser' 'apple-fonts' 'libconfig' 'spotify' 'npm'\
'qt5-styleplugins' 'lutris' 'discord' 'cmake' 'libev' 'uthash' 'bluez-utils'\
'betterdiscordctl' 'dash' 'eww' 'networkmanager-dmenu-git' 'xorg'\
'base-devel' 'rustup' 'python' 'python-pip' 'lf' 'archivemount-git'\
'gobject-introspection' 'imagemagick' 'zsh' 'jq' 'poetry' 'xdo'\
'mpd' 'mpc' 'playerctl' 'pamixer' 'redshift' 'spicetify-cli' --needed
pip install utils material_color_utilities_python
sudo npm install -g wscat ws node-ws
BACK_PID=$!
wait $BACK_PID
clear
cd $HOME
#Picom
echo -e "\e[1;31m${bold}Installing Picom${normal}\e[0m"
git clone https://github.com/FT-Labs/picom
cd picom
meson --buildtype=release . build
sudo ninja -C build install
cd ..
rm -rf picom
clear
#Cloning dots
echo -e "\e[1;31m${bold}Cloning dotfiles${normal}\e[0m"
git clone https://github.com/PoSayDone/.dotfiles_new.git
rm -rf $DIR $CONFIG_DIR/wpg $CONFIG_DIR/sxhkd $CONFIG_DIR/lf $CONFIG_DIR/qt5ct $CONFIG_DIR/gtk-3.0 $HOME/.Xresources $HOME/.xsettingsd $CONFIG_DIR/wpg $HOME/.zshenv $CONFIG_DIR/dunst $CONFIG_DIR/networkmanager-dmenu
cd .dotfiles_new
ln -sf $HOME/.dotfiles_new/files/ $DIR
ln -sf $DIR/wpg $CONFIG_DIR/
bash /usr/bin/wpg-install.sh -g
clear
#Symlinks
echo -e "\e[1;31m${bold}Symlinking dotfiles${normal}\e[0m"
ln -sf $DIR/.zshenv $HOME/
ln -sf $DIR/.Xresources $HOME
ln -sf $DIR/.xsettingsd $HOME
ln -sf $DIR/Scripts $HOME/
ln -sf $DIR/sxhkd $CONFIG_DIR/
ln -sf $DIR/eww $CONFIG_DIR/
ln -sf $DIR/lf $CONFIG_DIR/
ln -sf $DIR/dunst $CONFIG_DIR/
ln -sf $DIR/qt5ct $CONFIG_DIR/
ln -sf $DIR/gtk-3.0 $CONFIG_DIR/
ln -sf $DIR/betterlockscreenrc $CONFIG_DIR/
ln -sf $DIR/discord/* $CONFIG_DIR/BetterDicord/themes/
ln -sf $DIR/networkmanager-dmenu $CONFIG_DIR/
clear
#Fonts
echo -e "\e[1;31m${bold}Coping fonts${normal}\e[0m"
mkdir $HOME/.fonts
cp $HOME/.dotfiles_new/files/fonts/* $HOME/.fonts
fc-cache -r
clear
#Lf, nvim shortcuts
echo -e "\e[1;31m${bold}Creating apps shortcuts${normal}\e[0m"
sudo ln -sf $DIR/Scripts/lf-archivemount /usr/local/bin/
sudo ln -sf $DIR/Scripts/spicetifyreload /usr/local/bin/
sudo ln -sf $DIR/Scripts/st_pad /usr/local/bin/
sudo ln -sf $DIR/Scripts/autofocus /usr/local/bin/
sudo ln -sf $DIR/Scripts/autofocus_pad /usr/local/bin/
mkdir $HOME/.local/share/applications
ln -sf $DIR/applications/* $HOME/.local/share/applications
clear
#Suckless Terminal
echo -e "\e[1;31m${bold}Installing Suckless Terminal${normal}\e[0m"
git clone https://github.com/siduck/st/
cd st
sudo make install
cd ..
rm -rf st
clear
#Zathura
echo -e "\e[1;31m${bold}Installing zathura-pywal${normal}\e[0m"
git clone https://github.com/mlscarlson/zathura-pywal/
cd zathura-pywal
sudo make install
cd ..
rm -rf zathura-pywal
clear
#Astronvim installation
echo -e "\e[1;31m${bold}Installing Astronvim${normal}\e[0m"
mv ~/.config/nvim ~/.config/nvim.bak
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
mkdir $HOME/.config/nvim/lua/user
git clone https://github.com/posaydone/astronvim_config.git $HOME/.config/nvim/lua/user
st -e nvim +PackerSync &
clear
#qutebrowser pywal theme installation
echo -e "\e[1;31m${bold}PRESS ENTER TO SKIP NEOVIM ERRORS AND TO START INSTALLATION. CLOSE TERMINAL WITH NEOVIM AFTER INSTALLATION IS COMPLETE${normal}\e[0m"
echo -e "\e[1;31m${bold}CLOSE TERMINAL WITH NEOVIM AFTER INSTALLATION IS COMPLETE${normal}\e[0m"
echo -e "\e[1;31m${bold}Installing pywal theme for qutebrowser${normal}\e[0m"
git clone https://github.com/makman12/pywalQute.git $CONFIG_DIR/qutebrowser/pywalQute/
ln -sf $HOME/.dotfiles_new/files/qutebrowser/config.py $CONFIG_DIR/qutebrowser/
clear
#Spicetify
echo -e "\e[1;31m${bold}PRESS ENTER TO SKIP NEOVIM ERRORS AND TO START INSTALLATION. CLOSE TERMINAL WITH NEOVIM AFTER INSTALLATION IS COMPLETE${normal}\e[0m"
echo -e "\e[1;31m${bold}CLOSE TERMINAL WITH NEOVIM AFTER INSTALLATION IS COMPLETE${normal}\e[0m"
echo -e "\e[1;31m${bold}Configuring spicetify${normal}\e[0m"
sudo chmod a+wr /opt/spotify
sudo chmod a+wr /opt/spotify/Apps -R
spicetify backup apply enable-devtools
ln -sf $DIR/spicetify/ziro $CONFIG_DIR/spicetify/Themes/
spicetify config current_theme ziro
spicetify apply
clear
#BetterDicord
echo -e "\e[1;31m${bold}Installing BetterDicord${normal}\e[0m"
betterdiscordctl install
clear
#Shell
echo -e "\e[1;31m${bold}Changing shell${normal}\e[0m"
chsh -s $(which zsh)
BACK_PID=$!
wait $BACK_PID
clear
#wpgtk
echo -e "\e[1;31m${bold}Setting wallpaper and theme${normal}\e[0m"
wpg -s 63.jpg
clear