This defines which proxy (if at all) to use for which urls. It requires
qutebrowser to be patched to not load it's own proxy handling as that
seems to overwrite this.
This used to be set with QTWEBENGINE_CHROMIUM_FLAGS environment variable
in an untracked qutebrowser wrapper in PATH. It caused some issues with
darkmode though, as it seems that this env variable is not overwritten
when already set, and the correct darkmode settings are not being passed
to blink.
Setting the proxy file as qt.args works also with darkmode.
## https://peter.sh/experiments/chromium-command-line-switches/ for a
## list) will work.
## Type: List of String
-# c.qt.args = []
+c.qt.args = [str('proxy-pac-url=file://' / config.configdir / 'proxy.pac')]
## Additional environment variables to set. Setting an environment
## variable to null/None will unset it.
--- /dev/null
+function FindProxyForURL(url, host) {
+ if (shExpMatch(host, "*slack*")) {
+ return "DIRECT";
+ }
+ if (shExpMatch(host, "*focalpointpositioning*"))
+ {
+ return "SOCKS5 localhost:1080";
+ }
+
+ return "DIRECT";
+}