When I\'m on the train to work I connect my netbook to my Nexus One\'s wifi hotspot. As I go through a tunnel my phone obviously loses it\'s 3G connection and takes a while
Check out this simple applet I made. It has an icon that changes depending on events. Simply replace the logic with your logic and it should do the trick. Even better, it should be compatible with all freedesktop-compatible environments.