-
Notifications
You must be signed in to change notification settings - Fork 4
/
menu.sh
55 lines (54 loc) · 1.04 KB
/
menu.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
54
55
#!/bin/bash
# Bash Menu Script Example
PS3='Please enter your choice: '
options=("battery" "dstat" "htop" "mtr" "nethogs" "iptraf" "ipcalc" "ledger" "wyrd" "notes" "tasks" "qalc" "ranger" "Quit")
select opt in "${options[@]}"
do
echo "${options[@]}"
echo -e "---------------------------"
case $opt in
"battery")
acpi -bi
;;
"dstat")
dstat
;;
"htop")
htop
;;
"mtr")
mtr
;;
"nethogs")
sudo nethogs
;;
"iptraf")
sudo iptraf
;;
"ipcalc")
ipcalc
;;
"ledger")
ledger
;;
"wyrd")
wyrd
;;
"notes")
notes
;;
"tasks")
task
;;
"qalc")
qalc
;;
"ranger")
ranger
;;
"Quit")
break
;;
*) echo invalid option;;
esac
done