forked from saitamasahil/LinuxAppsManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanager.sh
More file actions
executable file
·35 lines (31 loc) · 950 Bytes
/
manager.sh
File metadata and controls
executable file
·35 lines (31 loc) · 950 Bytes
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
#!/usr/bin/env bash
# Define some color variables
PURPLE='\033[1m\033[38;5;140m'
PEACH='\e[1;38;2;255;204;153m'
NC='\033[0m' # No Color
# Show heading in middle
clear
echo ""
COLUMNS=$(tput cols)
t1="===================="
t2="Linux Apps Manager"
printf "${PURPLE}%*s\n${NC}" $(((${#t1} + $COLUMNS) / 2)) "$t1"
printf "${PURPLE}%*s\n${NC}" $(((${#t2} + $COLUMNS) / 2)) "$t2"
printf "${PURPLE}%*s\n${NC}" $(((${#t1} + $COLUMNS) / 2)) "$t1"
echo ""
# Ask user what option they want to choose
echo -e "${PEACH}Select Your Choice:${NC}"
echo "1. Open APT App Manager"
echo "2. Open Snap App Manager"
echo "3. Open Flatpak App Manager"
echo "4. Run Setup"
read -p "Enter your choice: " choice
if [ $choice -eq 1 ]; then
chmod +x apt.sh && ./apt.sh
elif [ $choice -eq 2 ]; then
chmod +x snap.sh && ./snap.sh
elif [ $choice -eq 3 ]; then
chmod +x flatpak.sh && ./flatpak.sh
elif [ $choice -eq 4 ]; then
chmod +x setup.sh && ./setup.sh
fi