I found no tools to do that for me, so I made this. Not a masterpiece, but it WORKS.
put the .json
file in ~/.config/toggleproxy.json
and modify it as your need, for example, to create a new profile, see this example
If you only want to use socks proxy settings, you can delete the http, https, ftp lines in the config.
after configuration, to switch your profile, enter:
$ toggleproxy [your-profile-in-here]
or to turn off the proxies:
$ toggleproxy none
and your Gnome proxy settings will be unset.
the gtoggleproxy is made by a human (me) and the ktoggleproxy is made by AI :)