0

I want to make a script that sets and unsets SYSTEM WIDE proxy just as what happens through the network settings.

I tried this answers gsettings part but it does not work in 14.04

Could Anyone please help? Its FRUSTRATING to open the network settings every time!

Nirmik
  • 7,938

1 Answers1

1

Okay,

Here is what i did...

I just needed a 'Proxy Mode Changer'... Setting the proxies , i did through gui... Now i just needed changing mode...

Here is the script i made... SIMPLE as anything ->

#!/bin/bash

state=$(gsettings get org.gnome.system.proxy mode)

if [ $state == "'none'" ]; then
        gsettings set org.gnome.system.proxy mode 'manual'
elif [ $state == "'manual'" ]; then
        gsettings set org.gnome.system.proxy mode 'none'
fi
Nirmik
  • 7,938