Jump to content

GNOME: Difference between revisions

make the example using user-level home-manager to be consistent with the rest of the article
(improve indendation)
(make the example using user-level home-manager to be consistent with the rest of the article)
Line 76: Line 76:
=== Dark mode ===
=== Dark mode ===


Change default color theme for all GTK4 applications to dark using [[Home Manager]]. Change <code>myuser</code> to the user you want to apply the configuration to.
Change default color theme for all GTK4 applications to dark using [[Home Manager]].


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
home-manager.users.myuser = {
{
        dconf = {
  dconf = {
                enable = true;
    enable = true;
                settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
    settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
        };
  };
};
}
</syntaxhighlight>
</syntaxhighlight>