Add GTK theming for everforest

inky
Elnu 2 years ago
parent e172b4b140
commit d61d195f9f

@ -1,4 +1,4 @@
{ {
undefined = "#ff00ff"; undefined = "#ff00ff";
foreground-bright = "#ffffff"; foreground-bright = "#ffffff";
} // import ./everforest.nix } // import ./everforest

@ -1,5 +1,9 @@
{ {
kitty-theme = "Everforest Dark Hard"; kitty-theme = "Everforest Dark Hard";
gtkTheme = pkgs: {
package = pkgs.callPackage ./gtk.nix {};
name = "Everforest-Dark-BL";
};
wallpaper = "306286.jpg"; wallpaper = "306286.jpg";
background = "#1e2326"; background = "#1e2326";

@ -0,0 +1,43 @@
{ lib
, stdenv
, fetchFromGitHub
, gtk-engine-murrine
, jdupes
}:
stdenv.mkDerivation rec {
pname = "everforest-gtk";
version = "unstable-2022-12-09";
src = fetchFromGitHub {
owner = "Fausto-Korpsvart";
repo = "Everforest-GTK-Theme";
rev = "af5920c8a16a53064cbcb7582bd7ef0ba8f44d83";
sha256 = "lIAJN8ljmN4RyvyPpHoAheyQBX/qyGXZsGvoTl1vt50=";
};
sourceRoot = ".";
nativeBuildInputs = [ jdupes ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes
cp -a source/themes/* $out/share/themes
jdupes -L -r $out/share
runHook postInstall
'';
meta = with lib; {
description = "Everforest colour palette for GTK";
homepage = "https://github.com/Fausto-Korpsvart/Everforest-GTK-Theme";
license = licenses.gpl3Only;
platforms = platforms.all;
};
}

@ -1,6 +1,10 @@
{ {
kitty-theme = "Nord"; kitty-theme = "Nord";
wallpaper = "roxynord.png"; wallpaper = "roxynord.png";
gtkTheme = pkgs: {
package = pkgs.nordic;
name = "Nordic";
};
background = "#2e3440"; background = "#2e3440";
background-alt = "#3b4252"; background-alt = "#3b4252";

@ -13,10 +13,7 @@ in
enable = true; enable = true;
greeters.gtk = { greeters.gtk = {
enable = true; enable = true;
theme = { theme = colors.gtkTheme pkgs;
name = "Nordic";
package = pkgs.nordic;
};
}; };
background = ../wallpapers/${colors.wallpaper}; background = ../wallpapers/${colors.wallpaper};
}; };

@ -1,8 +1,6 @@
{ config, pkgs, user, ... }: { config, pkgs, user, ... }:
let let
theme = pkgs.nordic;
themeName = "Nordic";
colors = import ../colors; colors = import ../colors;
in in
{ {
@ -21,17 +19,11 @@ in
home.file."./.background-image".source = ../wallpapers/${colors.wallpaper}; home.file."./.background-image".source = ../wallpapers/${colors.wallpaper};
programs.home-manager.enable = true; programs.home-manager.enable = true;
gtk = { gtk = {
enable = true; enable = true;
iconTheme = { iconTheme = colors.gtkTheme pkgs;
name = "${themeName}"; theme = colors.gtkTheme pkgs;
package = "${theme}";
};
theme = {
name = "${themeName}";
package = "${theme}";
};
# Remove minimize, maximize, and close buttons # Remove minimize, maximize, and close buttons
gtk3.extraConfig = { gtk3.extraConfig = {
gtk-decoration-layout = "appmenu:none"; gtk-decoration-layout = "appmenu:none";
@ -64,6 +56,7 @@ in
# Tray applications # Tray applications
networkmanagerapplet # nm-applet networkmanagerapplet # nm-applet
nextcloud-client nextcloud-client
#(pkgs.callPackage ../colors/everforest/gtk.nix {})
# GUI applications # GUI applications
firefox firefox

Loading…
Cancel
Save