-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·41 lines (34 loc) · 1.41 KB
/
install.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.41 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
#!/bin/bash
# Move network_manager to ~/.config/
echo -e "\033[1;34mMoving networkmanager to ~/.config/\033[0m"
cp -r networkmanager/ ~/.config/
if [ $? -eq 0 ]; then
echo -e "\033[1;32mSuccess: network_manager moved to ~/.config/\033[0m"
else
echo -e "\033[1;31mFailure: Could not move network_manager to ~/.config/\033[0m"
fi
# Create directory for rofi wifi
echo -e "\033[1;34mCreating directory ~/.config/rofi/wifi/\033[0m"
mkdir -p ~/.config/rofi/wifi/
if [ $? -eq 0 ]; then
echo -e "\033[1;32mSuccess: Directory ~/.config/rofi/wifi/ created\033[0m"
else
echo -e "\033[1;31mFailure: Could not create directory ~/.config/rofi/wifi/\033[0m"
fi
# Move rofi to ~/.config/rofi/wifi/
echo -e "\033[1;34mMoving wifi to ~/.config/rofi/wifi/\033[0m"
cp -r wifi/ ~/.config/rofi/
if [ $? -eq 0 ]; then
echo -e "\033[1;32mSuccess: rofi moved to ~/.config/rofi/wifi/\033[0m"
else
echo -e "\033[1;31mFailure: Could not move rofi to ~/.config/rofi/wifi/\033[0m"
fi
# Move network_manager script to /usr/local/bin/
echo -e "\033[1;34mMoving network_manager to /usr/local/bin/\033[0m"
sudo cp network_manager_ui.py /usr/local/bin/network_manager
if [ $? -eq 0 ]; then
echo -e "\033[1;32mSuccess: network_manager moved to /usr/local/bin/\033[0m"
else
echo -e "\033[1;31mFailure: Could not move network_manager to /usr/local/bin/\033[0m"
fi
echo -e "\033[1; Sucessfully installed network_manager_ui !! Enjoy:D \033[0m"