You will need the iphone binkit installed on your iphone for this to work.
There are two scripts, called "show" and "hide" and they take any number of arguments, and those arguments can be: all, phone, mail, safari, ipod, sms, calendar, photos, youtube, stocks, maps, weather, clock, calculator, notes, settings.
Note that "hide all" does not hide the phone - I found that if there are no icons on the bottom bar, pressing the Terminal application locks up the iPhone. If you wish to hide the phone, type hide phone.
The "kill -9 `ps -auxw | grep SpringBoard | cut -c 8-11`" command reloads the SpringBoard (which shows the icons)
To use, simply login to SSH or open the terminal and type "hide [program]" or "show [program]".
For example, to hide SMS, type: hide sms
Here are the scripts: (place in /usr/bin and chmod to 755)
hide
#!/bin/sh
while [ $# -ge 1 ]; do
if [ "$1" = "all" ]; then
mv /Applications/Calculator.app /Applications/Calculator
mv /Applications/DemoApp.app /Applications/DemoApp
mv /Applications/FieldTest.app /Applications/FieldTest
mv /Applications/Maps.app /Applications/Maps
mv /Applications/MobileCal.app /Applications/MobileCal
mv /Applications/MobileMail.app /Applications/MobileMail
mv /Applications/MobileMusicPlayer.app /Applications/MobileMusicPlayer
mv /Applications/MobileNotes.app /Applications/MobileNotes
#mv /Applications/MobilePhone.app /Applications/MobilePhone
mv /Applications/MobileSMS.app /Applications/MobileSMS
mv /Applications/MobileSafari.app /Applications/MobileSafari
mv /Applications/MobileSlideShow.app /Applications/MobileSlideShow
mv /Applications/MobileTimer.app /Applications/MobileTimer
mv /Applications/Preferences.app /Applications/Preferences
mv /Applications/Stocks.app /Applications/Stocks
mv /Applications/Weather.app /Applications/Weather
mv /Applications/YouTube.app /Applications/YouTube
fi
if [ "$1" = "phone" ]; then
mv /Applications/MobilePhone.app /Applications/MobilePhone
fi
if [ "$1" = "mail" ]; then
mv /Applications/MobileMail.app /Applications/MobileMail
fi
if [ "$1" = "safari" ]; then
mv /Applications/MobileSafari.app /Applications/MobileSafari
fi
if [ "$1" = "ipod" ]; then
mv /Applications/MobileMusicPlayer.app /Applications/MobileMusicPlayer
fi
if [ "$1" = "sms" ]; then
mv /Applications/MobileSMS.app /Applications/MobileSMS
fi
if [ "$1" = "calendar" ]; then
mv /Applications/MobileCal.app /Applications/MobileCal
fi
if [ "$1" = "photos" ]; then
mv /Applications/MobileSlideShow.app /Applications/MobileSlideShow
fi
if [ "$1" = "youtube" ]; then
mv /Applications/YouTube.app /Applications/YouTube
fi
if [ "$1" = "stocks" ]; then
mv /Applications/Stocks.app /Applications/Stocks
fi
if [ "$1" = "maps" ]; then
mv /Applications/Maps.app /Applications/Maps
fi
if [ "$1" = "weather" ]; then
mv /Applications/Weather.app /Applications/Weather
fi
if [ "$1" = "clock" ]; then
mv /Applications/MobileTimer.app /Applications/MobileTimer
fi
if [ "$1" = "calculator" ]; then
mv /Applications/Calculator.app /Applications/Calculator
fi
if [ "$1" = "notes" ]; then
mv /Applications/MobileNotes.app /Applications/MobileNotes
fi
if [ "$1" = "settings" ]; then
mv /Applications/Preferences.app /Applications/Preferences
fi
shift
done
kill -9 `ps -auxw | grep SpringBoard | cut -c 8-11`
show
#!/bin/sh
while [ $# -ge 1 ]; do
if [ "$1" = "all" ]; then
mv /Applications/Calculator /Applications/Calculator.app
mv /Applications/DemoApp /Applications/DemoApp.app
mv /Applications/FieldTest /Applications/FieldTest.app
mv /Applications/Maps /Applications/Maps.app
mv /Applications/MobileCal /Applications/MobileCal.app
mv /Applications/MobileMail /Applications/MobileMail.app
mv /Applications/MobileMusicPlayer /Applications/MobileMusicPlayer.app
mv /Applications/MobileNotes /Applications/MobileNotes.app
mv /Applications/MobilePhone /Applications/MobilePhone.app
mv /Applications/MobileSMS /Applications/MobileSMS.app
mv /Applications/MobileSafari /Applications/MobileSafari.app
mv /Applications/MobileSlideShow /Applications/MobileSlideShow.app
mv /Applications/MobileTimer /Applications/MobileTimer.app
mv /Applications/Preferences /Applications/Preferences.app
mv /Applications/Stocks /Applications/Stocks.app
mv /Applications/Weather /Applications/Weather.app
mv /Applications/YouTube /Applications/YouTube.app
fi
if [ "$1" = "phone" ]; then
mv /Applications/MobilePhone /Applications/MobilePhone.app
fi
if [ "$1" = "mail" ]; then
mv /Applications/MobileMail /Applications/MobileMail.app
fi
if [ "$1" = "safari" ]; then
mv /Applications/MobileSafari /Applications/MobileSafari.app
fi
if [ "$1" = "ipod" ]; then
mv /Applications/MobileMusicPlayer /Applications/MobileMusicPlayer.app
fi
if [ "$1" = "sms" ]; then
mv /Applications/MobileSMS /Applications/MobileSMS.app
fi
if [ "$1" = "calendar" ]; then
mv /Applications/MobileCal /Applications/MobileCal.app
fi
if [ "$1" = "photos" ]; then
mv /Applications/MobileSlideShow /Applications/MobileSlideShow.app
fi
if [ "$1" = "youtube" ]; then
mv /Applications/YouTube /Applications/YouTube.app
fi
if [ "$1" = "stocks" ]; then
mv /Applications/Stocks /Applications/Stocks.app
fi
if [ "$1" = "maps" ]; then
mv /Applications/Maps /Applications/Maps.app
fi
if [ "$1" = "weather" ]; then
mv /Applications/Weather /Applications/Weather.app
fi
if [ "$1" = "clock" ]; then
mv /Applications/MobileTimer /Applications/MobileTimer.app
fi
if [ "$1" = "calculator" ]; then
mv /Applications/Calculator /Applications/Calculator.app
fi
if [ "$1" = "notes" ]; then
mv /Applications/MobileNotes /Applications/MobileNotes.app
fi
if [ "$1" = "settings" ]; then
mv /Applications/Preferences /Applications/Preferences.app
fi
shift
done
kill -9 `ps -auxw | grep SpringBoard | cut -c 8-11`