-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·68 lines (54 loc) · 1.72 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
#!/bin/bash
##################################################
## Author - DN-debug
## Description - Peux Bspwm setup via fetcher app
##################################################
# Install packages
if zenity --question --text="Install Bspwm?"
then
PASSWD="$(zenity --password --title=Authentication)\n"
pkg="$(pacman -Qq | grep bspwm)"
if [ "${pkg}" = "bspwm" ]; then
notify-send "Bspwm is already installed. Skipping!"
else
echo -e $PASSWD | sudo -S pacman -Syu bspwm sxhkd
# dependencies for the system
echo -e $PASSWD | sudo -S pacman -S ttf-font-awesome i3lock feh picom
notify-send "installed Bspwm"
fi
if zenity --question --text="Install Tint2 Panel?"
then
pkg1="$(pacman -Qq | grep tint2)"
if [ "${pkg1}" = "tint2" ]; then
notify-send "Tint2 is already installed. Skipping!"
else
echo -e $PASSWD | sudo -S pacman -Syu tint2
notify-send "installed Tint2"
fi
fi
if zenity --question --text="Install Rofi?"
then
pkg1="$(pacman -Qq | grep rofi | tail -n1)"
if [ "${pkg1}" = "rofi" ]; then
notify-send "Rofi is already installed. Skipping!"
else
echo -e $PASSWD | sudo -S pacman -Syu rofi
notify-send "installed Rofi"
fi
fi
else
notify-send "skipping Bspwm installation!"
fi
# copy configurations
if zenity --question --text="Want to copy the configurations?"
then
echo "changing directory"
cd ../
cp -r Peux-Bspwm/*/ $HOME/.config/
notify-send "Copied the configurations"
else
notify-send "skipping the setup!"
fi
# cleanup
rm -rf /tmp/fetcher/Peux-Bpswm
notify-send "Done!"