
kproxyswitch
Source (link to git-repo or to original if based on someone elses unmodified work):
Available as/for:
Description:is a simple bash script, which makes setting the proxy server easier. The setting applies to Konqueror and all other applications that use the global proxy setting.
If you have to change proxies from time to time - or switch the proxy off and on again - you'll like the possibilty to bind this script to a keyboard/menu/... shortcut and thus be able to switch the proxy faster than going through the menus of Konqueror or System Settings.
0.1: Initial release.
0.2: Small changes: added two apps (randr, nspluginviewer) to blacklist, made output more verbose.
0.3: Ported to KDE4 by Abhijit Bhopatkar (thanks!); Added error handling in case the configuration file does not exist (thanks to mlogic)
Ratings & Comments
9 Comments
Will be there new features, such as autochange proxy every X minutes using a custom list of addresses in the future? It could be very usefull...
kproxyswitch is a good script and I've been used it for a long time. Thanks! I've met a problem with kproxyswitch today, on a new machine. kproxyswitch simply changes proxy settings in "~/.kde/share/config/kioslaverc". However, if the user hadn't set proxy before, there's no proxy settings in "~/.kde/share/config/kioslaverc", then running kproxyswitch looks OK but actually no proxy is set anywhere. This happens often on newly installed machines. Perhaps we need to handle this situation.
This script is very useful for those of us who prefer the speed and simplicity of command line to GUI menus. Thanks for it.
Download link is broken, correct url: http://www.patrick-nagel.net/scripts/kproxyswitch/kproxyswitch.sh
Yes, sorry for that :( I changed the folder structure of my webserver without remembering this page linking to my script.
nice bash script. I use it every week. Thank you. Suggestion: I have to change the proxy of firefox (here 2.0), too. Can you implement it in you bashs script as an option.
I *think* it shouldn't be too hard to do this. I have exams now, but if you want I can have a look at this afterwards. If you're still interested, send me an e-mail in February (ludootje at linux dot be).
I just looked into it... I don't find a way to "tell" Firefox to change settings like it's possible with KDE apps through dcop. Editing the config file would be possible for the script, but then Firefox would have to be closed while executing the script, which is not very convenient. I guess a Firefox extension (ProxySwitcher or something like that) would be a more feasible solution.
Hmm you're right. I was actually thinking about changing the config file. But like you said - that would require firefox to be closed. I didn't consider that to be a big problem, but I guess you're right.