forked from stav121/i3wm-themer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_arch.sh
executable file
·81 lines (69 loc) · 2.12 KB
/
install_arch.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
#!/bin/env sh
### Script written by Stavros Grigoriou ( github.com/unix121 )
### 20180505 Changes fully commented by James Shane ( github.com/jamesshane )
### 20180727 Python dependencies shifted to pacman by Graham Still ( github.com/adoxography )
#refrsh pacman
sudo pacman -Syy
#added binutils,gcc,make,pkg-config,fakeroot for compilations, removed yaourt
#added python-yaml, removed pip install
sudo pacman -S git nitrogen rofi python-pip ttf-font-awesome adobe-source-code-pro-fonts binutils gcc make pkg-config fakeroot python-yaml --noconfirm
#install yaourt by source
git clone https://aur.archlinux.org/package-query.git
cd package-query
makepkg -si --noconfirm
cd ..
rm -fr package-query
git clone https://aur.archlinux.org/yaourt.git
cd yaourt
makepkg -si --noconfirm
cd ..
rm -fr yaourt
#tmp dir for yaourt, /tmp may be too small
mkdir $HOME/tmpyaourt
#went with ttf-nerd-fonts, other is outta date
yaourt -S polybar-git ttf-nerd-fonts-symbols --noconfirm --tmp $HOME/tmpyaourt
rm -fr $HOME/tmpyaourt
#file didn't exist for me, so test and touch
if [ -e $HOME/.Xresources ]
then
echo "... .Xresources found."
else
touch $HOME/.Xresources
fi
#file didn't exist for me, so test and touch
if [ -e $HOME/.config/nitrogen/bg-saved.cfg ]
then
echo "... .bg-saved.cfg found."
else
mkdir $HOME/.config/nitrogen
touch $HOME/.config/nitrogen/bg-saved.cfg
fi
#file didn't excist for me, so test and touch
if [ -e $HOME/.config/polybar/config ]
then
echo "... polybar/config found."
else
mkdir $HOME/.config/polybar
touch $HOME/.config/polybar/config
fi
#file didn't excist for me, so test and touch
if [ -e $HOME/.config/i3/config ]
then
echo "... i3/config found."
else
mkdir $HOME/.config/i3
touch $HOME/.config/i3/config
fi
#rework of user in config.yaml
cd src
rm -f config.yaml
cp defaults/config.yaml .
sed -i -e "s/USER/$USER/g" config.yaml
#backup
mkdir $HOME/Backup
python i3wm-themer.py --config config.yaml --backup $HOME/Backup
#configure and set theme to 000
cp -r ../scripts/* /home/$USER/.config/polybar/
python i3wm-themer.py --config config.yaml --install defaults/
echo ""
echo "Read the README.md"