Skip to content

Commit f43ad78

Browse files
yashikabaanakshat157
authored andcommitted
fixes #1 (#2)
* fixes 1 * Update switchProxy.sh
1 parent b147fad commit f43ad78

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

switchProxy.sh

100644100755
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ if [ $curr_mode = "'manual'" ] && [ $curr_proxy = "'10.8.0.1'" ]
1010
then
1111
echo 'Switching proxy to "none".'
1212
gsettings set org.gnome.system.proxy mode 'none'
13+
14+
notify-send --urgency=critical --expire-time=500 switchProxy "Proxy switched to 'none'."
15+
16+
elif [ $curr_mode = "'manual'" ] && [ $curr_proxy = "''" ]
17+
then
18+
echo 'Switching proxy to "none".'
19+
gsettings set org.gnome.system.proxy mode 'none'
20+
1321
notify-send --urgency=critical --expire-time=500 switchProxy "Proxy switched to 'none'."
1422

1523
elif [ $curr_mode = "'none'" ]
@@ -22,7 +30,7 @@ then
2230
gsettings set org.gnome.system.proxy.http host '10.7.0.1'
2331
gsettings set org.gnome.system.proxy.http port '8080'
2432
gsettings set org.gnome.system.proxy.ftp host '10.7.0.1'
25-
gsettings set org.gnome.system.proxy.ftp port '8080'
33+
gsettings set org.gnome.system.proxy.ftp port '8080'
2634

2735
notify-send --urgency=critical --expire-time=500 switchProxy "Proxy switched to '10.7.0.1:8080'"
2836

0 commit comments

Comments
 (0)