-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu_terminals.sh
More file actions
40 lines (32 loc) · 1.02 KB
/
Copy pathmenu_terminals.sh
File metadata and controls
40 lines (32 loc) · 1.02 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
function menu_alternative_terminals() {
options_title=();
options_id=();
options_selected=();
options_title+=("Terminator [apt]")
options_selected+=(FALSE)
options_id+=("addApt \"terminator\"")
options_title+=("Terminology [snap edge classic]")
options_selected+=(FALSE)
options_id+=("addSnapEdgeClassic \"terminology\"")
options_title+=("Cool Retro Term [snap classic]")
options_selected+=(FALSE)
options_id+=("addSnapClassic \"cool-retro-term\"")
optionsLength=${#options_id[@]}
optionsToShow=();
for (( i=0; i<${optionsLength}; i++ ));
do
optionsToShow+=(${options_selected[$i]} "${options_title[$i]}")
done
appsSelected=$(zenity --list --width=800 --height=640 --text "Selecione os APPs para instalar" \
--checklist \
--column "Marcar" \
--column "App" \
"${optionsToShow[@]}")
cancelSelection=$?
if [[ $cancelSelection = 1 ]] ;
then
echo "Cancelado!";
return 0
fi
callAppsFunctions "$appsSelected"
}