Move dconf dark mode override to gtk.nix

This commit is contained in:
ItsDrike 2024-06-23 21:59:46 +02:00
parent 919a2efc17
commit d87680738d
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 8 additions and 5 deletions

View file

@ -2,11 +2,8 @@
dconf = {
enable = true;
settings = {
# This is like a system-wide dark mode swithc that some apps respect
# Equivalent of the following dconf command:
# `conf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"`
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
"org/gtk/settings/file-chooser" = {
sort-directories-first = true;
};
};
};

View file

@ -78,7 +78,13 @@ in {
};
dconf.settings = {
# This is like a system-wide dark mode swithc that some apps respect it.
# Equivalent of the following dconf command:
# `conf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"`
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
"org/gnome/desktop/interface".gtk-theme = cfg.theme.name;
# For Gnome shell
"org/gnome/shell/extensions/user-theme".name = cfg.theme.name;
};