-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustom_Dope_Dialog_boxes.sh
More file actions
67 lines (55 loc) · 4.95 KB
/
Custom_Dope_Dialog_boxes.sh
File metadata and controls
67 lines (55 loc) · 4.95 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
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
apt install whiptail -y
snap install newt
export NEWT_COLORS='
root=,black # Default text on the black background
border=white,black # Border color
window=,black # Window background
title=yellow,black # Title text
button=white,black # Button text
actbutton=yellow,black # Active button text
checkbox=white,black # Checkbox text
actcheckbox=yellow,black # Active checkbox text
entry=white,black # Entry field text
label=white,black # Label text
listbox=white,black # Listbox text
actlistbox=yellow,black # Active listbox text
textbox=white,black # Textbox text
acttextbox=yellow,black # Active textbox text
compactbutton=white,black # Compact button text
actcompactbutton=yellow,black # Active compact button text
sells=white,blue # Selections
sellistbox=white,blue # Selected listbox
sellabel=white,blue # Selected label
selentry=white,blue # Selected entry
password=white,black # Password text
disentry=grey,black # Disabled entry text
compactbutton=white,black # Compact button
actcompactbutton=yellow,black # Active compact button
errmsg=red,black # Error message text
textboxreflowed=white,black # Reflowed text in textboxes
emptyscale=,black # Empty scale
fullscale=white,black # Full scale
disscale=grey,black # Disabled scale
background=black # General background
'
create a quick menu dialog:
CHOICE=$(whiptail --title "Advanced Menu with Custom Colors" --menu "Choose an option" 15 60 4 \
"1" "Option 1: Basic Info" \
"2" "Option 2: Configuration" \
"3" "Option 3: Update System" \
"4" "Option 4: Exit" 3>&1 1>&2 2>&3)
┌───────────┤ Advanced Menu with Custom Colors ├───────────┐
│ Choose an option │
│ │
│ 1 Option 1: Basic Info │
│ 2 Option 2: Configuration │
│ 3 Option 3: Update System │
│ 4 Option 4: Exit │
│ │
│ │
│ │
│ │
│ │
│ <Ok> <Cancel> │
│ │
└──────────────────────────────────────────────────────────┘