Here's the current state
-EDIT: Updated
- Added pmytd and an exit option.
- archey and screenfetch are now part of a submenu.
- lynx added.
- scrot added.
- cleanup: my poor editing leftover crap corrected.
#! /bin/bash
clappsmenu() {
#top menu of clapps, first question
echo "what do you want to run?
1) aptitude #tui package manager
2) pmytd #poorman's youtube downloader
3) scrot #screenshot or it never happened
4) fetch info #nicely shows what you're running
5) inxi stuff #inxi can tell you lots
6) cdw #ncurses cd writer (if you installed it)
7) ncdu #where the big stuff is clogging up your storage
8) htop #what's running, n what's it doing, n how much it chewing
9) lynx #off you go to surf the web
10) other
11) exit
enter number preference of preference:"
read CLAPPSCHOOSE
case $CLAPPSCHOOSE in
1)
echo "Choice was $CLAPPSCHOOSE"
aptitude
;;
2)
echo "Choice was $CLAPPSCHOOSE, now making it so."
pmytd
;;
3)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
scrotmenu
;;
4)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
fetchmenu
;;
5)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
inximenu
;;
6)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
cdw
;;
7)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
ncdu
;;
8)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
htop
;;
9)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
lynx https://startpage.com/eng/
;;
10)
echo "Choice was $CLAPPSCHOOSE so that is what you get"
echo "idkwtf goes here... something, surely."
sleep 1
echo "come help write more, here:"
sleep 1
echo "http://vsido.org/index.php?topic=667.0"
;;
11)
clear
echo ""
echo -e " Good bye!"
echo ""
sleep 1
clear
exit 0
;;
*)
echo "Valid Choices are 1 to 11"
exit 1
;;
esac
}
scrotmenu() {
#scrot menu of clapps, first question
echo "choose an option
1) now
2) in 5 seconds...
3) in 10 seconds...
4) focused window
5) selected area
enter the number corresponding to the command you want:"
read SCROTMENU
case $SCROTMENU in
1)
scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrots/ && mirage ~/images/scrots/$f'
;;
2)
scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrots/ && mirage ~/images/scrots/$f'
;;
3)
scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrots/ && mirage ~/images/scrots/$f'
;;
4)
scrot -u '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrots/ && mirage ~/images/scrots/$f'
;;
5)
scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/scrots/ && mirage ~/images/scrots/$f'
;;
*)
echo "i dont know what you tried to press, or what you want. taking you back to the top level clapps menu..."
sleep 1
clappsmenu
;;
esac
}
fetchmenu() {
#fetch menu of clapps, first question
echo "choose an option to show the info
1) archey #nicely shows what you're running
2) screefetch #also nicely shows the same
enter the number corresponding to the command you want:"
read FETCHMENU
case $FETCHMENU in
1)
echo "Choice was $FETCHMENU, now making it so."
archey
;;
2)
echo "Choice was $FETCHMENU, so that is what you get"
screenfetch
;;
*)
echo "i dont know what you tried to press, or what you want. taking you back to the top level clapps menu..."
sleep 1
clappsmenu
;;
esac
}
inximenu() {
#inxi menu of clapps, first question
echo "what do you want inxi to do?
1) inxi -F #show me information overload about my system.
2) inxi -wx #some weather info (timezone based)
3) inxi -wxxxx #lots more weather info
4) more...
enter the number corresponding to the command you want:"
read INXICHOOSE
case $INXICHOOSE in
1)
echo "since you chose $INXICHOOSE, you clearly want the moon on a stick"
inxi -F
;;
2)
echo "have at, with $INXICHOOSE"
inxi -wx
;;
3)
echo " $INXICHOOSE selected."
echo "what aint no country i ever heard of. they have weather in what?"
echo "in \"inxi -wxxxx\":"
echo "x = zip code, postal code; city,[state/country]; latitude,longitude"
echo "so now you know. :)"
inxi -wxxx
;;
4)
echo "if you know more about inxi than this, please help:"
echo "http://vsido.org/index.php?topic=667.0"
;;
*)
echo "i dont know what you tried to press, or what you want. taking you back to the top level clapps menu..."
sleep 1
clappsmenu
;;
esac
}
#it all starts here. this launches the top level menu.
clappsmenu
Working on adding some more default vsido goodies.