From 837182ae0c71fd16fca07cc91ae64479c29399a2 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 3 Oct 2024 11:17:23 +0200 Subject: [PATCH] gtk: add theming --- home/programs/default.nix | 1 + home/programs/gtk.nix | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 home/programs/gtk.nix diff --git a/home/programs/default.nix b/home/programs/default.nix index baf9f3d..c25ad18 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { imports = [ ./browsers.nix + ./gtk.nix ]; programs.fzf.enable = true; diff --git a/home/programs/gtk.nix b/home/programs/gtk.nix new file mode 100644 index 0000000..2abfeb6 --- /dev/null +++ b/home/programs/gtk.nix @@ -0,0 +1,43 @@ +{ + pkgs, + config, + ... +}: { + home.pointerCursor = { + package = pkgs.bibata-cursors; + name = "Bibata-Modern-Classic"; + size = 16; + gtk.enable = true; + x11.enable = true; + }; + + gtk = { + enable = true; + + font = { + name = "Inter"; + package = pkgs.inter; + size = 9; + }; + + gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc"; + + iconTheme = { + name = "Papirus-Dark"; + package = pkgs.papirus-icon-theme; + }; + + theme = let + accent = "lavender"; + variant = "frappe"; + size = "standard"; + in { + name = "catppuccin-${variant}-${accent}-${size}"; + package = pkgs.catppuccin-gtk.override { + # https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/data/themes/catppuccin-gtk/default.nix + accents = [accent]; + inherit variant size; + }; + }; + }; +}