Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
feat: gtk Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmSyAgkACgkQuFOtpdp7 v3raKg/9ELgkGw6RzMd+zL8xDxwgkJPFbYhdb4LmakDv8Bx7jDuXx700rSk89Do4 TzaktMcIEsH7jDoNXtyWnBF2l4B/SE40x1PuNqh6NW0oLb62r+rutMgy3Mz0m6um WAbQBr7x6ohWIdVs9JQ6Fz9vvpjFy3L6AggvpP5zYXy0Pqm8RGGiTHvPeJce5b2M UaoDVXLfNnmWGVTw+ThcaDpIjAe7IF6Ld7Tb/guZpMW/lTuRBqEuYl2clP4BQd0v i84QSFb1bV7scyL44FeQuofRlHa4sPGfw86TDQfBPUm4fsFS1GsmTBT9+QrwHjNj 2f2xFTX9mlqt2t4SOYxQDQli31fSJJ0ohrfBCIaB/mmyKTJ5O5gZ1mTQCDl8X1XO WixCGANlpxuBJOt4KVR7b5JYd0YnDkQLOmf2m2fYEYY+fFRZFQb4UMqUXK/ESGe7 5p4MaBiJ8/5wOuht0cv2II0xNj0fuldLKq6brPis8ln1Gc1aM4DkRtNsqYLTd7zZ SbiDdc/gXmVPqz/XUOudykeSmVm0s/veLSS4dcqQZQNTX9ncAFjTn9kmYFqgwbf3 KWRqMDIG88MrC/ThfRyO58xo1lubTH0PmB0jK/rHDEQz8SCo1nR4YEyB82G7bdc1 nh8WWsP8qntSRrv5NxKsCY6vrWjxrFuFi6PS1Cdn7UGUgvX+qPQ= =6ygP -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 56 additions(+), 0 deletions(-)
M apps/default.nix -> apps/default.nix
diff --git a/apps/default.nix b/apps/default.nix
index c18e5054f271cf6579a52836153f46bbf0d88f97..c44d2a0a3833720fd9184954dea705728f1f0505 100644
--- a/apps/default.nix
+++ b/apps/default.nix
@@ -12,6 +12,7 @@     ./fzf.nix
     ./gpg.nix
     ./git.nix
     ./go.nix
+    ./gtk.nix
     ./helix.nix
     ./jq.nix
     ./nushell.nix
I apps/gtk.nix
diff --git a/apps/gtk.nix b/apps/gtk.nix
new file mode 100644
index 0000000000000000000000000000000000000000..62c0d1a54f4e4a66efef00d4f37e9cc4a8eb22b1
--- /dev/null
+++ b/apps/gtk.nix
@@ -0,0 +1,55 @@
+{
+  config,
+  lib,
+  pkgs,
+  ...
+}: {
+  home.pointerCursor = {
+    name = "catppuccin-cursors";
+    package = pkgs.catppuccin-cursors.mochaLavender;
+    size = 24;
+  };
+  gtk = {
+    enable = true;
+    iconTheme = {
+      name = "Papirus-Dark";
+      package = pkgs.catppuccin-papirus-folders.override {
+        flavor = "mocha";
+        accent = "lavender";
+      };
+    };
+    theme = {
+      name = "Catppuccin-Mocha-Compact-Lavender-Dark";
+      package = pkgs.catppuccin-gtk.override {
+        accents = ["lavender"];
+        variant = "mocha";
+        size = "compact";
+      };
+    };
+    gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
+    gtk2.extraConfig = ''
+      gtk-xft-antialias=1
+      gtk-xft-hinting=1
+      gtk-xft-hintstyle="hintslight"
+      gtk-xft-rgba="rgb"
+    '';
+    gtk3.extraConfig = {
+      gtk-xft-antialias = 1;
+      gtk-xft-hinting = 1;
+      gtk-xft-hintstyle = "hintslight";
+      gtk-xft-rgba = "rgb";
+    };
+  };
+
+  xdg = let
+    themeDir = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
+  in
+    lib.mkIf config.gtk.enable {
+      configFile."gtk-4.0/assets" = {
+        source = "${themeDir}/gtk-4.0/assets";
+        recursive = true;
+      };
+      configFile."gtk-4.0/gtk.css".source = "${themeDir}/gtk-4.0/gtk.css";
+      configFile."gtk-4.0/gtk-dark.css".source = "${themeDir}/gtk-4.0/gtk-dark.css";
+    };
+}