-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·54 lines (47 loc) · 1.05 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
#!/bin/bash
#sudo pacman -S playerctl brightnessctl feh flameshot
echo "Do you want my configuration? [y/n]"
read myConfig
if [ -z $1 ];
then
echo "Please user './install.sh <desktop>' avalible desktops are bspwm, qtile and sway"
else
if [[ $1 == "bspwm" ]];
then
if [[ "$myConfig" == "y" ]];
then
echo "Using my bspwm config"
source ./desktops/useBspwm.sh
else
echo "Using bspwm default config"
source ./desktops/installBspwm.sh
fi
cp ./Wallpapers ~/
cat ./.xinitrc > ~/.xinitrc
echo "feh --bg-scale /home/$USER/Wallpapers/"
echo "exec bspwm" >> ~/.xinitrc
echo "exec sxhkd" >> ~/.xinitrc
fi
if [[ $1 == "qtile" ]];
then
if [[ "$myConfig" == "y" ]];
then
echo "Using my qtile config"
source ./desktops/useQtile.sh
else
echo "Using qtile default config"
source ./desktops/installQtile.sh
fi
fi
if [[ $1 == "sway" ]];
then
if [[ "$myConfig" == "y" ]];
then
echo "Using my sway config"
source ./desktops/useSway.sh
else
echo "Using sway default config"
source ./desktops/installSway.sh
fi
fi
fi