#!/bin/bash

HEIGHT=15
WIDTH=40
CHOICE_HEIGHT=4
BACKTITLE="Backtitle here"
TITLE="Title here"
MENU="Choose one of the following options:"


OPTIONS=(1 "Wifi menu"
         2 "Tmux"
         3 "mc"
         4 "mutt email client"
         5 "htop"         
         6 "links"
         7 "mc" )

CHOICE=$(dialog --clear \
                --backtitle "$BACKTITLE" \
                --title "$TITLE" \
                --menu "$MENU" \
                $HEIGHT $WIDTH $CHOICE_HEIGHT \
                "${OPTIONS[@]}" \
                2>&1 >/dev/tty)

clear
case $CHOICE in
        1)
            wifi
            ;;
        2)
            tmuxke
            ;;
        3)
            mc
            ;;

        4)
            mutt
            ;;
        5)
            htop
            ;;
        6)
            links https://teletekst-data.nos.nl/webtekst
            ;;
        7)
            echo "You chose Option 3"
            ;;

esac
