title: GNOME proxy switch in Ubuntu
body: <p>I use Ubuntu and i'm new in shell scripting. I try to write shell script which will switch proxy mode in Ubuntu GNOME. 
  For each switch i can write such scripts and to run it with launcher. This command switches proxy to none.</p>
  
  <pre><code>gconftool-2 -s -t string /system/proxy/mode none
  </code></pre>
  
  <p>And this one swithces proxy mode to manual, which i use at work:</p>
  
  <pre><code>gconftool-2 -s -t string /system/proxy/mode manual
  </code></pre>
  
  <p>Both ones works, but i want them to work together, with if-else. I want it to check current proxy mode and if current proxy mode is NONE, let it turn to MANUAL, and else if current proxy mode is MANUAL, let it to turn to NONE. I would be able to build this code, if i knew how to get current proxy mode name for using in script.</p>