disable ui animations in gtk and gnome

no-animations
Tudor Roman 2024-01-17 18:12:59 +01:00
parent 1964e240b6
commit f5fc65c284
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
3 changed files with 30 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{ ... }: {
imports = [
./disable-animations.nix
./fonts.nix
./foot.nix
./sway.nix

View File

@ -0,0 +1,27 @@
{ config, lib, ... }: let
cfg = config.homeModules.desktop.disableAnimations;
in
with lib; {
options = {
homeModules.desktop.disableAnimations = {
enable = mkEnableOption "Enable disabling of animations";
};
};
config = mkIf cfg.enable {
gtk = let
extraConfig.gtk-enable-animations = false;
in {
enable = true;
gtk3 = { inherit extraConfig; };
gtk4 = { inherit extraConfig; };
};
dconf = {
enable = true;
settings = {
"org/gnome/desktop/interface".enable-animations = false;
};
};
};
}

View File

@ -9,6 +9,7 @@
enable = true;
lightTheme = true;
};
shell.bash = {
enable = true;
execOtherShell = true;
@ -37,6 +38,7 @@
};
desktop = {
disableAnimations.enable = true;
fonts.themeFont = {
family = "Berkeley Mono";
style = "Regular";