From 4553ec10ff7ad8ff555c5293b96d65c2e8ea7513 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 22 Jun 2024 19:53:09 -0400 Subject: [PATCH] gnome: better defaults --- homeManagerModules/desktop/gnome/default.nix | 12 ++++++++++++ homeManagerModules/theme.nix | 2 ++ 2 files changed, 14 insertions(+) diff --git a/homeManagerModules/desktop/gnome/default.nix b/homeManagerModules/desktop/gnome/default.nix index 43c9601c..0ac04d64 100644 --- a/homeManagerModules/desktop/gnome/default.nix +++ b/homeManagerModules/desktop/gnome/default.nix @@ -24,6 +24,10 @@ workspaces-only-on-primary = true; }; + "org/gnome/settings-daemon/plugins/color" = { + night-light-enabled = true; + }; + "org/gnome/shell".enabled-extensions = [ "appindicatorsupport@rgcjonas.gmail.com" "blur-my-shell@aunetx" @@ -48,5 +52,13 @@ "org/gnome/system/location".enabled = true; }; + + xdg.mimeApps = { + enable = true; + defaultApplications = { + "x-scheme-handler/sms" = "org.gnome.Shell.Extensions.GSConnect.desktop"; + "x-scheme-handler/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop"; + }; + }; }; } diff --git a/homeManagerModules/theme.nix b/homeManagerModules/theme.nix index 5a14b5a3..e0b278ee 100644 --- a/homeManagerModules/theme.nix +++ b/homeManagerModules/theme.nix @@ -103,6 +103,8 @@ "org/cinnamon/theme".name = config.alyraffauf.theme.gtk.name; "org/cinnamon/desktop/wm/preferences".titlebar-font = "${config.alyraffauf.theme.font.name} ${toString config.alyraffauf.theme.font.size}"; + "org/gnome/desktop/background".picture-uri = "file://${config.alyraffauf.theme.wallpaper}"; + "org/gnome/desktop/background".picture-uri-dark = "file://${config.alyraffauf.theme.wallpaper}"; "org/gnome/desktop/interface" = { color-scheme = if config.alyraffauf.theme.colors.preferDark