mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-18 13:08:52 +02:00
add mainmenu
This commit is contained in:
parent
085571ac10
commit
eb3ca2452a
1 changed files with 83 additions and 0 deletions
83
scripts/mainmenu.sh
Normal file
83
scripts/mainmenu.sh
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
#!/bin/bash
|
||||
|
||||
# sudo apt install dialog
|
||||
|
||||
# BASIC MENU INFO
|
||||
HEIGHT=26
|
||||
WIDTH=50
|
||||
CHOICE_HEIGHT=19
|
||||
BACKTITLE=""
|
||||
TITLE="JoininBox"
|
||||
MENU="Choose from the options:"
|
||||
OPTIONS=()
|
||||
BACKTITLE="JoininBox GUI"
|
||||
|
||||
# Basic Options
|
||||
OPTIONS+=(INSTALL "Install JoinMarket" \
|
||||
"" ""
|
||||
GEN "Generate a wallet" \
|
||||
INFO "Wallet information" \
|
||||
CONF "Configure Joinmarket" \
|
||||
"" ""
|
||||
PAY "Pay with a coinjoin" \
|
||||
TUMBLER "Run the Tumbler" \
|
||||
EMPTY "Empty a mixdepth" \
|
||||
"" ""
|
||||
CONF_YG "Configure the Yield Generator" \
|
||||
YG "Run the Yield Generator" \
|
||||
STOP "Stop the Yield Generator" \
|
||||
REPORT "Show report"
|
||||
OBWATCH "Show the offer book"
|
||||
"" ""
|
||||
RESTORE "Restore a wallet" \
|
||||
UP_JM "Update JoinMarket" \
|
||||
UP_JIB "Update JoininBox"
|
||||
)
|
||||
|
||||
CHOICE=$(dialog --clear \
|
||||
--backtitle "$BACKTITLE" \
|
||||
--title "$TITLE" \
|
||||
--menu "$MENU" \
|
||||
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
||||
"${OPTIONS[@]}" \
|
||||
2>&1 >/dev/tty)
|
||||
|
||||
|
||||
case $CHOICE in
|
||||
INSTALL)
|
||||
|
||||
;;
|
||||
GEN)
|
||||
;;
|
||||
INFO)
|
||||
|
||||
;;
|
||||
CONF)
|
||||
|
||||
;;
|
||||
PAY)
|
||||
|
||||
;;
|
||||
TUMBLER)
|
||||
|
||||
;;
|
||||
EMPTY)
|
||||
;;
|
||||
CONF_YG)
|
||||
|
||||
;;
|
||||
YG)
|
||||
;;
|
||||
STOP)
|
||||
;;
|
||||
REPORT)
|
||||
;;
|
||||
OBWATCH)
|
||||
;;
|
||||
RESTORE)
|
||||
;;
|
||||
UP_JM)
|
||||
;;
|
||||
UP_JIB
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue