Initial commit

This commit is contained in:
Ubergeek 2022-02-06 12:38:28 -05:00
commit b028dd5af7
1 changed files with 72 additions and 0 deletions

72
menu Executable file
View File

@ -0,0 +1,72 @@
#!/bin/bash
tmpfile="/home/`whoami`/menu.tmp"
main () {
dialog --menu "Select an option:" 0 0 0 "mail" "" "shell" "" "wiki" "" "browser" "" "chat" "" "quit" "" 2>$tmpfile
return
}
quit () {
dialog --yesno "Do you want to exit?" 0 0
response=$?
case $response in
0)
clear
echo "Just type 'menu' to return!"
rm $tmpfile
exit 0;;
1)
break;;
esac
return
}
email () {
alpine
return
}
wiki () {
elinks https://wiki.thunix.net
return
}
browser () {
elinks https://thunix.net
return
}
chat () {
weechat
return
}
shellout () {
clear
echo "Just type 'exit' to return to the menu."
bash -il
return
}
main
selection=`cat $tmpfile`
case $selection in
mail)
email;;
shell)
shellout;;
wiki)
wiki;;
browser)
browser;;
chat)
chat;;
quit)
quit;;
esac
$0