joininbox/scripts/menu.sh

116 lines
2.8 KiB
Bash
Raw Normal View History

2020-01-22 22:24:21 +00:00
#!/bin/bash
/home/joinmarket/start.joininbox.sh
2020-06-13 16:48:31 +01:00
source /home/joinmarket/joinin.conf
source /home/joinmarket/_functions.sh
2020-01-22 22:24:21 +00:00
# BASIC MENU INFO
HEIGHT=23
WIDTH=57
2020-12-14 20:04:37 +00:00
CHOICE_HEIGHT=21
BACKTITLE="JoininBox GUI $currentJBtag network:$network IP:$localip"
TITLE="JoininBox $currentJBtag $network"
MENU="
Choose from the options:"
2020-01-22 22:24:21 +00:00
OPTIONS=()
# Basic Options
OPTIONS+=(\
2020-06-14 09:34:45 +01:00
INFO "Show the address list and balances" \
QTGUI "Show how to open the JoinMarketQT GUI" \
2020-06-13 20:01:18 +01:00
"" ""
WALLET "Wallet management options" \
MAKER "Yield Generator options" \
2020-01-22 22:24:21 +00:00
"" ""
SEND "Pay to an address with/without a coinjoin" \
FREEZE "Exercise coin control within a mixdepth" \
PAYJOIN "Send/Receive between JoinMarket wallets"
2020-01-22 22:24:21 +00:00
"" ""
2020-10-27 15:07:16 +00:00
OFFERS "Watch the Order Book locally" \
"" ""
CONFIG "Connection and joinmarket.cfg settings" \
TOOLS "Extra helper functions and services"
UPDATE "Update JoininBox or JoinMarket" \
2020-01-22 22:24:21 +00:00
)
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--ok-label "Select" \
--cancel-label "Exit" \
2020-01-22 22:24:21 +00:00
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS[@]}" \
2>&1 >/dev/tty)
case $CHOICE in
2020-06-21 01:03:29 +01:00
INFO)
/home/joinmarket/menu.info.sh
waitKeyOnExit1 $?
2020-10-14 01:18:11 +01:00
/home/joinmarket/menu.sh
2020-06-21 01:03:29 +01:00
;;
WALLET)
/home/joinmarket/menu.wallet.sh
waitKeyOnExit1 $?
2020-06-21 01:03:29 +01:00
/home/joinmarket/menu.sh
;;
QTGUI)
/home/joinmarket/info.qtgui.sh
/home/joinmarket/menu.sh
;;
MAKER)
/home/joinmarket/menu.yg.sh
waitKeyOnExit1 $?
2020-06-21 01:03:29 +01:00
/home/joinmarket/menu.sh
;;
SEND)
/home/joinmarket/menu.send.sh
2020-10-14 01:18:11 +01:00
echo ""
echo "Press ENTER to return to the menu..."
read key
/home/joinmarket/menu.sh
2020-06-21 01:03:29 +01:00
;;
FREEZE)
/home/joinmarket/menu.freeze.sh
echo ""
echo "Press ENTER to return to the menu..."
read key
/home/joinmarket/menu.sh
2020-06-21 01:03:29 +01:00
;;
PAYJOIN)
/home/joinmarket/menu.payjoin.sh
waitKeyOnExit1 $?
/home/joinmarket/menu.sh
2020-06-21 01:03:29 +01:00
;;
OFFERS)
2020-10-27 15:07:16 +00:00
/home/joinmarket/menu.orderbook.sh
2020-06-21 01:03:29 +01:00
/home/joinmarket/menu.sh
;;
CONFIG)
/home/joinmarket/menu.config.sh
2020-06-21 01:03:29 +01:00
echo "Returning to the menu..."
sleep 1
/home/joinmarket/menu.sh
;;
2020-12-14 20:04:37 +00:00
TOOLS)
/home/joinmarket/menu.tools.sh
/home/joinmarket/menu.sh
2020-06-21 01:03:29 +01:00
;;
UPDATE)
/home/joinmarket/menu.update.sh
2020-06-21 01:03:29 +01:00
/home/joinmarket/menu.sh
;;
*)
2020-06-21 01:03:29 +01:00
clear
echo "
***************************
* JoinMarket command line *
***************************
2020-06-19 12:40:50 +01:00
Notes on usage:
https://github.com/openoms/bitcoin-tutorials/blob/master/joinmarket/README.md
To open the JoininBox menu use: menu
To exit from the terminal type: exit
2020-06-19 12:40:50 +01:00
"
esac