forked from joakimkarlsson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgnome3_from_mini_iso.sh
executable file
·156 lines (119 loc) · 4.18 KB
/
gnome3_from_mini_iso.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
149
150
151
152
153
154
155
156
#!/usr/bin/env bash
# Needed for 'add-apt-repository' and gnome PPA
sudo apt install python-software-properties software-properties-common -y
# Gnome 3 PPA
sudo add-apt-repository ppa:gnome3-team/gnome3 -y
# Needed for libxcb-xrm-dev, needed by i3wm
sudo add-apt-repository ppa:aguignard/ppa -y
# Needed for Vim8 with good compile flags
sudo add-apt-repository ppa:pi-rho/dev -y
# Needed for albert launcher
sudo add-apt-repository ppa:nilarimogard/webupd8 -y
# Needed for docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Update packges list
sudo apt update
# Install Gnome 3 stuff
sudo apt install -y gnome-shell gnome-session gnome-settings-daemon gnome-network-admin gnome-terminal gnome-tweak-tool network-manager-gnome \
albert \
build-essential curl
mkdir -p ~/.builds
# Dependencies for i3-gaps
sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf libxcb-xrm-dev libxcb-xrm-dev -y
# i3bar needs to be installed separately
sudo apt install i3bar -y
# Get i3-gaps
if [[ ! -d ~/.builds/i3-gaps ]]; then
git clone https://www.github.com/Airblader/i3 ~/.builds/i3-gaps
else
pushd ~/.builds/i3-gaps
git pull
popd
fi
pushd ~/.builds/i3-gaps
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
sudo make install
popd
# polybar
# sudo apt install cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev libxcb-xkb-dev pkg-config python-xcbgen xcb-proto libxcb-xrm-dev libasound2-dev libmpdclient-dev libiw-dev libcurl4-openssl-dev libjsoncpp-dev libjsconcpp -y
#
# if [[ ! -d ~/.builds/polybar ]]; then
# git clone --branch 3.0.5 --recursive https://github.com/jaagr/polybar ~/.builds/polybar
# else
# pushd ~/.builds/polybar
# git pull
# popd
# fi
# if [[ -d ~/polybar/build ]]; then
# rm -rf ~/polybar/build
# fi
# mkdir -p ~/.builds/polybar/build
# pushd ~/.builds/polybar/build
# cmake ..
# sudo make install
# popd
# Arc Theme
sudo apt install libgtk-3-dev gnome-themes-standard gtk2-engines-murrine -y
if [[ ! -d ~/.builds/arc-theme ]]; then
git clone https://github.com/horst3180/arc-theme --depth 1 ~/.builds/arc-theme
else
pushd ~/.builds/arc-theme
git pull
popd
fi
pushd ~/.builds/arc-theme
./autogen.sh --prefix=/usr
sudo make install
popd
# Download fonts
mkdir -p ~/.local/share/fonts
pushd ~/.local/share/fonts
curl -fLo "DejaVu Sans Mono Nerd Font Complete Mono.ttf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/DejaVuSansMono/Regular/complete/DejaVu%20Sans%20Mono%20Nerd%20Font%20Complete%20Mono.ttf?raw=true
popd
# Tmux 2.4
sudo apt install libevent-dev libncurses-dev -y
if [[ ! -d ~/.builds/tmux ]]; then
git clone --branch 2.4 https://github.com/tmux/tmux.git ~/.builds/tmux
else
pushd ~/.builds/tmux
git pull
popd
fi
pushd ~/.builds/tmux
sh autogen.sh
./configure && make
sudo make install
popd
# Install docker
sudo apt install docker-ce docker-compose -y
sudo apt install zsh vim silversearcher-ag -y
# Python
sudo apt install python3-venv python3-dev -y
sudo apt install firefox -y
# Link dotfiles needed
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ln -s $DIR/.vim $HOME
ln -s $DIR/.zshfunctions $HOME
ln -s $DIR/.ctags $HOME
ln -s $DIR/.tmux.conf $HOME
ln -s $DIR/.tmuxline.conf $HOME
ln -s $DIR/.vimrc $HOME
ln -s $DIR/.zshrc* $HOME
# ln -s $DIR/.config/autostart $HOME/.config
mkdir -p $HOME/.config
ln -s $DIR/.config/base16-shell $HOME/.config/base16-shell
ln -s $DIR/.config/i3 $HOME/.config/i3
ln -s $DIR/.config/polybar $HOME/.config/polybar
ln -s $DIR/.config/albert.conf $HOME/.config
ln -s $DIR/.config/nitrogen $HOME/.config
ln -s $DIR/.config/gtk-3.0 $HOME/.config
FOR_WHO=$(whoami) sudo chsh -s $(which zsh) $FOR_WHO