Skip to content

Commit

Permalink
[THEME] missed the saturation of Kanagawa
Browse files Browse the repository at this point in the history
  • Loading branch information
Icy-Thought committed Oct 17, 2024
1 parent cf2da5d commit 6626424
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 43 deletions.
10 changes: 5 additions & 5 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@

## XMonad

![XMonad](./assets/themes/catppuccin/xmonad.png)
![XMonad](./assets/themes/kanagawa/xmonad.png)

## Emacs

![Emacs](./assets/themes/catppuccin/emacs.png)
![Emacs](./assets/themes/kanagawa/emacs.png)

## Neovim

![Neovim](./assets/themes/catppuccin/neovim.png)
![Neovim](./assets/themes/kanagawa/neovim.png)

# Introduction

Expand Down Expand Up @@ -147,9 +147,9 @@ Modify `snowflake.dir` to point to the location where you are keeping the
snowflake repository:
https://github.com/Icy-Thought/snowflake/blob/f576ca018a7dd97e0f9d887835e2559e1e5cc02c/modules/options.nix#L26-L29

## 2. Remove Redundant CPU Setting
## 2. Remove Redundant CPU Setting

For the sake of making things quicker (not the wisest choice), I have added both Intel and AMD CPU settings in the `hardware.nix` template. Therefore you ought to remove the one not being used.
For the sake of making things quicker (not the wisest choice), I have added both Intel and AMD CPU settings in the `hardware.nix` template. Therefore you ought to remove the one not being used.

There might be other configurations that you need to add to your `hardware.nix` file, therefore it is the wisest choice to always look (grep `hardware.`) in the [NixOS Manual](https://nixos.org/manual/nixos/unstable/).

Expand Down
22 changes: 11 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion hosts/thinkpad-e595/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
scientific.typst.enable = true;
};

themes.active = "catppuccin";
themes.active = "kanagawa";
desktop = {
xmonad.enable = true;
terminal = {
Expand Down
6 changes: 3 additions & 3 deletions modules/themes/kanagawa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ in {
config = mkIf (cfg.active == "kanagawa") (mkMerge [
{
modules.themes = {
wallpaper = mkDefault ./assets/morganprost-spacestation01.jpg;
wallpaper = mkDefault ./assets/ismail-inceoglu-chaos-invoked.jpg;
gtk = {
name = "Kanagawa-BL";
package = pkgs.my.kanagawa-gtk.override { themeVariants = [ "BL" ]; };
package = pkgs.my.kanagawa-gtk;
};
iconTheme = {
name = "Kanagawa";
package = pkgs.my.kanagawa-gtk.override { themeVariants = [ "BL" ]; };
package = pkgs.my.kanagawa-gtk;
};
pointer = {
name = "Bibata-Modern-Classic";
Expand Down
7 changes: 3 additions & 4 deletions packages/catppuccin-gtk/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, jdupes, sassc
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, sassc
, accent ? [ "default" ], shade ? "dark", size ? "standard", tweaks ? [ ], }:

let
Expand All @@ -24,6 +24,7 @@ in lib.checkListOfEnum "${pname} Valid theme accent(s)" validAccents accent
lib.checkListOfEnum "${pname} Valid shades" validShades (single shade)
lib.checkListOfEnum "${pname} Valid sizes" validSizes (single size)
lib.checkListOfEnum "${pname} Valid tweaks" validTweaks tweaks

stdenv.mkDerivation {
pname = "${pname}";
version = "0-unstable-2024-06-27";
Expand All @@ -35,7 +36,7 @@ stdenv.mkDerivation {
hash = "sha256-oFVsYrJ27hYGY+x9+Z4SxVCp3w6PiLYTZaxmGhnpVHQ=";
};

nativeBuildInputs = [ jdupes sassc ];
nativeBuildInputs = [ sassc ];

propagatedUserEnvPkgs = [ gtk-engine-murrine ];

Expand All @@ -60,8 +61,6 @@ stdenv.mkDerivation {
${toString (map (x: "--tweaks " + x) tweaks)} \
--dest $out/share/themes
jdupes --quiet --link-soft --recurse $out/share
runHook postInstall
'';

Expand Down
12 changes: 4 additions & 8 deletions packages/kanagawa-gtk/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, jdupes, themeVariants ? [ ],
}:
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, themeVariants ? [ "BL" ], }:

let
inherit (builtins) toString;
inherit (lib.trivial) checkListOfEnum;
in checkListOfEnum "$Kanagawa: GTK Theme Variants" [ "B" "B-LB" "BL" "BL-LB" ]
themeVariants stdenv.mkDerivation {
themeVariants

stdenv.mkDerivation {
pname = "kanagawa-gtk";
version = "unstable-2023-07-04";

Expand All @@ -16,8 +17,6 @@ themeVariants stdenv.mkDerivation {
hash = "sha256-BZRmjVas8q6zsYbXFk4bCk5Ec/3liy9PQ8fqFGHAXe0";
};

nativeBuildInputs = [ jdupes ];

propagatedUserEnvPkgs = [ gtk-engine-murrine ];

installPhase = let gtkTheme = "Kanagawa-${toString themeVariants}";
Expand All @@ -29,9 +28,6 @@ themeVariants stdenv.mkDerivation {
cp -r $src/themes/${gtkTheme} $out/share/themes
cp -r $src/icons/Kanagawa $out/share/icons
# Duplicate files -> hard-links = reduced install-size!
jdupes -L -r $out/share
runHook postInstall
'';

Expand Down
11 changes: 4 additions & 7 deletions packages/rose-pine-gtk/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, jdupes, themeVariant ? [ ]
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, themeVariant ? [ ]
, iconVariant ? [ ], }:

let
Expand All @@ -10,7 +10,9 @@ in checkListOfEnum "$Rose-Pine: GTK Theme Variants" [
"Main-BL-LB"
"Main-BL"
] themeVariant checkListOfEnum "$RosePine: GTK Theme Variants" [ "" "Moon" ]
iconVariant stdenv.mkDerivation {
iconVariant

stdenv.mkDerivation {
pname = "rose-pine-gtk";
version = "unstable-2023-02-20";

Expand All @@ -21,8 +23,6 @@ iconVariant stdenv.mkDerivation {
hash = "";
};

nativeBuildInputs = [ jdupes ];

propagatedUserEnvPkgs = [ gtk-engine-murrine ];

installPhase = let
Expand All @@ -36,9 +36,6 @@ iconVariant stdenv.mkDerivation {
cp -r $src/themes/${gtkTheme} $out/share/themes
cp -r $src/icons/${iconTheme} $out/share/icons
# Duplicate files -> hard-links = reduced install-size!
jdupes -L -r $out/share
runHook postInstall
'';

Expand Down
6 changes: 2 additions & 4 deletions packages/tokyonight-gtk/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, jdupes, sassc
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, sassc
, accent ? [ "default" ], shade ? "dark", size ? "standard", }:

let
Expand All @@ -24,7 +24,7 @@ stdenv.mkDerivation {
hash = "sha256-oKqLb66N4swHfhjUZJIGryE0D9MkuLdKFQa6j3TFmOg=";
};

nativeBuildInputs = [ jdupes sassc ];
nativeBuildInputs = [ sassc ];

propagatedUserEnvPkgs = [ gtk-engine-murrine ];

Expand All @@ -48,8 +48,6 @@ stdenv.mkDerivation {
${lib.optionalString (size != null) ("--size " + size)} \
--dest $out/share/themes
jdupes --quiet --link-soft --recurse $out/share
runHook postInstall
'';

Expand Down

0 comments on commit 6626424

Please sign in to comment.