File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ if [ $curr_mode = "'manual'" ] && [ $curr_proxy = "'10.8.0.1'" ]
10
10
then
11
11
echo ' Switching proxy to "none".'
12
12
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
+
13
21
notify-send --urgency=critical --expire-time=500 switchProxy " Proxy switched to 'none'."
14
22
15
23
elif [ $curr_mode = " 'none'" ]
22
30
gsettings set org.gnome.system.proxy.http host ' 10.7.0.1'
23
31
gsettings set org.gnome.system.proxy.http port ' 8080'
24
32
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'
26
34
27
35
notify-send --urgency=critical --expire-time=500 switchProxy " Proxy switched to '10.7.0.1:8080'"
28
36
You can’t perform that action at this time.
0 commit comments