forked from drewgrif/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·74 lines (50 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
69
70
71
72
73
#!/bin/bash
# Check if git is installed
if ! command -v git &> /dev/null; then
echo "Git is not installed. Attempting to install Git..."
# Use apt to install git
if command -v apt &> /dev/null; then
sudo apt update
sudo apt install git -y
else
echo "Cannot install Git automatically using apt. Please install Git manually and run this script again."
exit 1
fi
# Check again if git is installed after attempting to install
if ! command -v git &> /dev/null; then
echo "Git installation failed. Please install Git manually and run this script again."
exit 1
fi
fi
echo "Git is installed. Continuing with the script..."
# Add further commands here after ensuring Git is installed
# Clone the repository into the home directory
git clone https://github.com/drewgrif/sway ~/sway
clear
echo "
+-+-+-+-+-+-+-+-+-+-+-+-+-+
|j|u|s|t|a|g|u|y|l|i|n|u|x|
+-+-+-+-+-+-+-+-+-+-+-+-+-+
|c|u|s|t|o|m| |s|c|r|i|p|t|
+-+-+-+-+-+-+ +-+-+-+-+-+-+
"
# Make setup.sh executable (if needed, though it's typically already executable)
# chmod +x setup.sh packages.sh
# Run the setup script
bash ~/sway/install_scripts/setup.sh
clear
# Run the extra packages
bash ~/sway/install_scripts/packages.sh
clear
echo "Make sure a Display Manager is installed"
# make sure gdm3 is installed
bash ~/sway/install_scripts/gdm.sh
clear
# add bashrc question
bash ~/sway/install_scripts/add_bashrc.sh
clear
bash ~/sway/install_scripts/printers.sh
clear
bash ~/sway/install_scripts/bluetooth.sh
sudo apt autoremove
printf "\e[1;32mYou can now reboot! Thanks you.\e[0m\n"