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 = { dconf = {
enable = true; enable = true;
settings = { settings = {
# This is like a system-wide dark mode swithc that some apps respect "org/gtk/settings/file-chooser" = {
# Equivalent of the following dconf command: sort-directories-first = true;
# `conf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"`
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
}; };
}; };
}; };

View file

@ -78,7 +78,13 @@ in {
}; };
dconf.settings = { 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; "org/gnome/desktop/interface".gtk-theme = cfg.theme.name;
# For Gnome shell # For Gnome shell
"org/gnome/shell/extensions/user-theme".name = cfg.theme.name; "org/gnome/shell/extensions/user-theme".name = cfg.theme.name;
}; };