-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathifnir_setup.sh
More file actions
60 lines (47 loc) · 1.15 KB
/
ifnir_setup.sh
File metadata and controls
60 lines (47 loc) · 1.15 KB
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
#!/bin/bash
# how to put linux cmd into variable
pw=$(pwd)
appsname=(rofi i3 picom polybar alacritty ni)
#sudo pacman -S ttf-dejavu
#fc-cache
#sudo pacman -S i3-gaps
#sudo pacman -S --needed base-devel
#sudo pacman -Syy
# git clone https://aur.archlinux.org/yay-git.git
# cd yay
# makepkg -si
# yay
# yay -S polybar
for name in ${appsname[@]}; do
if [ ! -d ~/.config/$name ]; then
mkdir -p ~/.config/$name;
fi
if ! hash $name &> /dev/null;
then
echo "$name not installed"
fi
done;
if [ ! -f ~/.config/rofi/config.rasi ];
then
ln -s $pw/rofi/config.rasi ~/.config/rofi/config.rasi
fi;
if [ ! -f ~/.config/i3/config ];
then
ln -s $pw/i3/config ~/.config/i3/config
fi;
if [ ! -f ~/.config/alacritty/alacritty.yml ];
then
ln -s $pw/alacritty/alacritty.yml ~/.config/alacritty/alacritty.yml
fi;
if [ ! -f ~/.config/polybar/config ];
then
ln -s $pw/polybar/config.ini ~/.config/polybar/config.ini
fi;
if [ ! -f ~/.config/polybar/launch.sh ];
then
ln -s $pw/polybar/launch.sh ~/.config/polybar/launch.sh
fi;
if [ ! -f ~/.config/picom/picom.conf ];
then
ln -s $pw/picom/picom.conf ~/.config/picom/picom.conf
fi;