commit 786b541599e532430cc79fa8da8b943bb8dea7ac
parent 055d27b5c4d657bd89a3cbb5942fd6dc77ba0726
Author: vin <vin@vineetk.net>
Date: Wed, 8 Jan 2025 21:18:33 -0500
save current theme to "current" for easy switching in colors.nix
Diffstat:
| M | colors.nix | | | 5 | ++++- |
| M | home.nix | | | 62 | +++++++++++++++++++++++++++++++------------------------------- |
2 files changed, 35 insertions(+), 32 deletions(-)
diff --git a/colors.nix b/colors.nix
@@ -1,4 +1,4 @@
-{
+rec {
everblush = {
primary = {
background = "#141b1e";
@@ -27,4 +27,7 @@
white = "#bdc3c2";
};
};
+
+ # easy to switch current theme from here
+ current = everblush;
}
diff --git a/home.nix b/home.nix
@@ -266,15 +266,15 @@ in {
};
colors = {
- primary = colors.everblush.primary;
+ primary = colors.current.primary;
cursor = {
- text = colors.everblush.primary.background;
- cursor = colors.everblush.primary.foreground;
+ text = colors.current.primary.background;
+ cursor = colors.current.primary.foreground;
};
- normal = colors.everblush.normal;
- bright = colors.everblush.bright;
+ normal = colors.current.normal;
+ bright = colors.current.bright;
};
};
};
@@ -447,22 +447,22 @@ in {
# TODO import nix file that defines colorscheme
bars = [ {
colors = {
- background = colors.everblush.primary.background;
- statusline = colors.everblush.primary.foreground;
+ background = colors.current.primary.background;
+ statusline = colors.current.primary.foreground;
focusedWorkspace = {
- background = colors.everblush.normal.black;
- border = colors.everblush.normal.black;
- text = colors.everblush.normal.green;
+ background = colors.current.normal.black;
+ border = colors.current.normal.black;
+ text = colors.current.normal.green;
};
activeWorkspace = {
- background = colors.everblush.normal.black;
- border = colors.everblush.normal.black;
- text = colors.everblush.primary.foreground;
+ background = colors.current.normal.black;
+ border = colors.current.normal.black;
+ text = colors.current.primary.foreground;
};
inactiveWorkspace = {
- background = colors.everblush.primary.background;
- border = colors.everblush.primary.background;
- text = colors.everblush.normal.white;
+ background = colors.current.primary.background;
+ border = colors.current.primary.background;
+ text = colors.current.normal.white;
};
};
command = "${pkgs.i3}/bin/i3bar";
@@ -471,25 +471,25 @@ in {
} ];
colors = {
focused = {
- background = colors.everblush.primary.background;
- border = colors.everblush.primary.background;
- childBorder = colors.everblush.primary.background;
- indicator = colors.everblush.normal.black;
- text = colors.everblush.normal.green;
+ background = colors.current.primary.background;
+ border = colors.current.primary.background;
+ childBorder = colors.current.primary.background;
+ indicator = colors.current.normal.black;
+ text = colors.current.normal.green;
};
focusedInactive = {
- background = colors.everblush.primary.background;
- border = colors.everblush.primary.background;
- childBorder = colors.everblush.primary.background;
- indicator = colors.everblush.normal.black;
- text = colors.everblush.primary.foreground;
+ background = colors.current.primary.background;
+ border = colors.current.primary.background;
+ childBorder = colors.current.primary.background;
+ indicator = colors.current.normal.black;
+ text = colors.current.primary.foreground;
};
unfocused = {
- background = colors.everblush.normal.black;
- border = colors.everblush.normal.black;
- childBorder = colors.everblush.normal.black;
- indicator = colors.everblush.primary.background;
- text = colors.everblush.normal.white;
+ background = colors.current.normal.black;
+ border = colors.current.normal.black;
+ childBorder = colors.current.normal.black;
+ indicator = colors.current.primary.background;
+ text = colors.current.normal.white;
};
};
focus.mouseWarping = true;