-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
executable file
·76 lines (57 loc) · 1.96 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
#!/usr/bin/env bash
# @email [email protected]
# @author Lucas Pacheco lsiddd
function install_fedora {
deps_fedora
echo 'copying files'
cp -ra ./i3/ ~/.config/i3
cp ./vim/.vimrc ~
cp -r ./alacritty/ ~/.config/
cp ./bash/.bashrc ~
echo 'Installing fonts'
mkdir ~/.local/share/fonts
cp ./fonts/*.ttf ~/.local/share/fonts
fc-cache -fv
echo 'Installing Scripts'
cd ~
git clone https://github.com/vivien/i3blocks-contrib.git ~/.config/i3/i3blocks-contrib
}
function deps_fedora {
echo "installing standard dependencies"
sudo dnf install -y git conky rofi zsh dmenu network-manager-applet
echo 'Installing i3-gaps dependencies'
sudo dnf install -y libxcb-devel xcb-util-keysyms-devel xcb-util-devel \
xcb-util-wm-devel xcb-util-xrm-devel yajl-devel libXrandr-devel \
startup-notification-devel libev-devel xcb-util-cursor-devel \
libXinerama-devel libxkbcommon-devel libxkbcommon-x11-devel \
pcre-devel pango-devel git gcc automake i3status i3lock
cd ~
git clone https://www.github.com/Airblader/i3 i3-gaps && cd i3-gaps
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
sudo make install
echo 'installing i3blocks'
sudo dnf -y copr enable wyvie/i3blocks
sudo dnf -y install i3blocks
echo 'Installing Alacritty'
wget https://github.com/jwilm/alacritty/releases/download/v0.2.3/Alacritty-v0.2.3-x86_64.tar.gz
tar xf Alacritty-v0.2.3-x86_64.tar.gz
sudo cp alacritty /usr/bin
echo 'Installing Vim Plugins'
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
echo 'Install i3lock-fancy'
git clone https://github.com/meskarune/i3lock-fancy.git
cd i3lock-fancy
sudo make install
echo 'Installing compton'
dnf copr enable dschubert/compton
dnf install compton
}
if [[ $(cat /etc/os-release | head -n 1) == 'NAME=Fedora' ]];
then
install_fedora
fi