How can I change this setting from a Bash script?
My plan is to enable it only on certain network connections.
You can use
You can change this via the terminal using
Will turn it on while
will set it to "Off".
Gsettings comes by default in Ubuntu and you can install dconf with:
You don't need dconf to use gsettings.