Manage background with gnome settings

This commit is contained in:
RingOfStorms (Josh) 2024-07-12 11:54:01 -05:00
parent 71deaf21a9
commit 2de7a0a1ad
7 changed files with 65 additions and 8 deletions

View file

@ -1,14 +1,19 @@
{ pkgs, lib, ... }:
{
pkgs,
settings,
lib,
...
}:
with lib.hm.gvariant;
{
home.packages = with pkgs; [
# use `dconf dump /` before and after and diff the files for easy editing of dconf below
# > `dconf dump / > /tmp/dconf_dump_start && watch -n0.5 'dconf dump / > /tmp/dconf_dump_current && diff --color /tmp/dconf_dump_start /tmp/dconf_dump_current -U12'`
# > `dconf dump / > /tmp/dconf_dump_start && watch -n0.5 "dconf dump / > /tmp/dconf_dump_current && diff --color /tmp/dconf_dump_start /tmp/dconf_dump_current -U12"`
# OR (Must be logged into user directly, no SU to user will work): `dconf watch /`
# OR get the exact converted config from `dconf dump / | dconf2nix | less` and search with forward slash
# gnome.dconf-editor
# gnomeExtensions.workspace-switch-wraparound
#gnomeExtensions.forge # probably don't need on this on tiny laptop but may explore this instead of sway for my desktop
#gnomeExtensions.forge # probably don"t need on this on tiny laptop but may explore this instead of sway for my desktop
];
dconf = {
@ -101,9 +106,20 @@ with lib.hm.gvariant;
idle-brightness = 15;
power-saver-profile-on-low-battery = false;
};
"org/gnome/desktop/background" = {
color-shading-type = "solid";
picture-options = "zoom";
picture-uri = "file://" + (settings.usersDir + "/_common/components/black.png");
picture-uri-dark = "file://" + (settings.usersDir + "/_common/components/black.png");
primary-color = "#000000000000";
secondary-color = "#000000000000";
};
"org/gnome/desktop/screensaver" = {
lock-enabled = false;
idle-activation-enabled = false;
picture-options = "zoom";
picture-uri = "file://" + (settings.usersDir + "/_common/components/black.png");
picture-uri-dark = "file://" + (settings.usersDir + "/_common/components/black.png");
};
"org/gnome/desktop/applications/terminal" = {
exec = "alacritty";

View file

@ -10,13 +10,13 @@
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
gtk-application-prefer-dark-theme=1
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
gtk-application-prefer-dark-theme=1
'';
};
};