-
Notifications
You must be signed in to change notification settings - Fork 0
/
physalis.sh
53 lines (44 loc) · 1.28 KB
/
physalis.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
#!/bin/bash
clear_all(){
clear
echo -e "\e[1;32m2024 (c) Sam Mahonri - Physalis Tools - \e[1;35m[CTRL+C] to Cancel\e[0m"
echo -e "----------------------------------------------------------\n"
}
exibir_menu() {
echo -e "\e[1;33m# Choose Tool:\n\e[0m"
echo " 1. SWAP Manager"
echo " 2. Battery Limiter"
echo " 3. Discord Installer"
echo " 4. Default Disable Fn Key in ASUS Laptops"
echo -e "\e[1;31m 0. Exit\n\e[0m"
}
executar_swap_manager() {
chmod +x ./physrc/physalis_swap.sh
./physrc/physalis_swap.sh
}
executar_battery_limiter() {
chmod +x ./physrc/physalis_batlimit.sh
./physrc/physalis_batlimit.sh
}
executar_discord_installer(){
chmod +x ./physrc/physalis_dcinstall.sh
./physrc/physalis_dcinstall.sh
}
executar_deffnkey(){
chmod +x ./physrc/physalis_deffnkey.sh
./physrc/physalis_deffnkey.sh
}
while true; do
clear_all
exibir_menu
read -p $'\e[1;33m< Select option [0 - 4]:\e[0m' opcao
case $opcao in
1) executar_swap_manager ;;
2) executar_battery_limiter ;;
3) executar_discord_installer ;;
4) executar_deffnkey ;;
0) echo "Exiting..."; exit ;;
*) echo "Invalid option. Try again." ;;
esac
read -p $'\e[1;35mPress [Enter] to Continue...\e[0m'
done