I just installed the elementary-tweaks package on Freya, and was wondering if there was a way to control the Prefer Dark Theme option programmatically with a script, or directly via the terminal. I am quite new to elementary OS and Linux in general so I don't really have much experience with such tasks. If someone could point me in the right direction, it would be much appreciated.
I don't think there is an command for this, but you can edit a file. Create/edit the following file:
And change it to this: