I know how to set and display most themes, however I can find anything about how to turn the Global Dark Theme on and off through Terminal, I can only find the option in the gnome-tweak-tool. So is there not a way to turn it on and off through Terminal? I am running Ubuntu GNOME 15.10 with GNOME 3.18.


To set the global dark theme from the command line, first navigate to a Terminal of your choice and then from within the shell emulator ...

Navigate to your home directory:

 cd ~

Create a new file called settings.ini inside of the GTK 3 directory:

 nano ~/.config/gtk-3.0/settings.ini

Enter the following fields into the configuration file:


Write the changes to disk by pressing control + x, then press y, then enter.

  • 1
    I did it, but didn't work... – Guilherme Feb 24 at 14:51
  • Well, you need to leave way more information than that if you want help! @Guilherme – oemb1905 Feb 24 at 16:33
  • What distribution? Which release? – oemb1905 Feb 24 at 16:33
  • I'm using the ubuntu 16.04.5 , I did it " nano ~/.config/gtk-3.0/settings.ini" and change to 1 and my nautilus didn't change – Guilherme Feb 24 at 17:36
  • 1
    Confirmed that even on Ubuntu 18.04, ~/.config/gtk-3.0/settings.ini has no effect on "dark mode" (rebooted after change as well to restart display manager). – tresf Jun 3 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy