#!/bin/bash
PATH=$PATH:/usr/local/lib/inx
. inx_essentials
maybe_switch

f-direct ()
{
# Most stuff in one screen...
unbold ; clear ; echo
fig-col
figlet -k -t "  inx   Direct"
head-col 
echo "  Direct access to most things..."
info-col
echo
echo "  a: INX Start Screen                                 n:'New Default Colour Theme' Chooser       "
echo "  b: INX 101                                          o: Office                                  "
echo "  c: CD Player                                        p: Play Streams (Shoutcast, Magnatune, 1fm)"
echo "  d: Dvtm Terminal Manager                            q: Quit INX and shut down                  "
echo "  e: Email                                            r: Radio                                   "
echo "  f: File Systems Access                              s: Secure Sharing (sshfs)                  "
echo "  g: Google (xlinks2 graphical browser)               t: Tools                                   "
echo "  h: Help (Introduction to Linux)                     u: USB Access                              "
echo "  i: INX Introduction/Demo                            v: The Video! (A New Computer)             "
echo "  j: Just for Fun...                                  w: Web, Net, Mail                          "
echo "  k: Key Words Search (Wikipedia, Dictionary)         x: Command Prompt                          " 
echo "  l: Learn (Tutorials)                                y: Why INX?                                "
echo "  m: Search for Music Streams                         z: Zen INX ;-) (Guru Mode)                 "
echo
head-col
echo "  Choose by letter, or press <enter> to return to the INX $1."
echo
f-ttynum
unbold
read -s -n 1 DIRECT
case $DIRECT in
    "")
    exec $1
    ;;
    a|A)
    exec first-screen direct
    ;;
    b|B)
    exec first-screen direct inx101
    ;;
    c|B)
    cdmp
    exec direct
    ;;
    d|D)
    exec tools 7
    ;;
    e|E)
    exec mailinx
    ;;
    f|F)
    exec drivinx
    ;;
    g|G)
    links2-watch http://google.com
    exec direct    
    ;;
    h|H)
    links2-watch /usr/share/example-content/intro-linux/index.html
    exec direct    
    ;;
    i|I)
    exec intro
    ;;
    j|J)
    exec fun
    ;;
    k|K)
    reference
    exec direct    
    ;;
    l|L)
    exec tutorial
    ;;
    m|M)
    exec random
    ;;
    n|N)
    exec theme
    ;;
    o|O)
    exec office
    ;;
    p|P)
    elinks http://classic.shoutcast.com http://magnatune.com http://www.1.fm
    exec direct    
    ;;
    q|Q)
    exec menu q
    ;;
    r|R)
    exec radio
    ;;
    s|S)
    exec sharinx
    ;;
    t|T)
    exec tools
    ;;
    u|U)
    exec usb
    ;;
    v|V)
    mplayer /usr/share/video/a_new_computer.ogg
    exec direct    
    ;;
    w|W)
    exec netinx
    ;;
    x|X)
    clear
    f-prompt
    ;;
    y|Y)
    exec menu 0
    ;;
    z|Z)
    exec guru-mode
    ;;
    *)
    exec direct
    ;;
esac
}

if [ "$1" = "" ] ; then f-direct menu ; fi
f-direct $1
