Dynamically theme wallpaper, i3 tabs, kitty

inky
Elnu 2 years ago
parent 1fb2415cd4
commit 5ce8aa8641

@ -1,4 +1,7 @@
{ {
kitty-theme = "Everforest Dark Hard";
wallpaper = "306286.jpg";
background = "#1e2326"; background = "#1e2326";
background-alt = "#272e33"; background-alt = "#272e33";
foreground = "#d3c6aa"; foreground = "#d3c6aa";

@ -1,4 +1,7 @@
{ {
kitty-theme = "Nord";
wallpaper = "roxynord.png";
background = "#2e3440"; background = "#2e3440";
background-alt = "#3b4252"; background-alt = "#3b4252";
foreground = "#eceff4"; foreground = "#eceff4";

@ -3,6 +3,7 @@
let let
theme = pkgs.nordic; theme = pkgs.nordic;
themeName = "Nordic"; themeName = "Nordic";
colors = import ../colors;
in in
{ {
imports = [ imports = [
@ -17,7 +18,7 @@ in
../terminal.nix ../terminal.nix
]; ];
home.file."./.background-image".source = ../wallpapers/306286.jpg; home.file."./.background-image".source = ../wallpapers/${colors.wallpaper};
programs.home-manager.enable = true; programs.home-manager.enable = true;

@ -1,6 +1,7 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
colors = import ./colors;
mod = "Mod4"; mod = "Mod4";
in { in {
# Dependencies # Dependencies
@ -22,25 +23,25 @@ in {
}; };
colors = { colors = {
focused = { focused = {
border = "#4c566a"; border = "${colors.background-alt}";
background = "#4c566a"; background = "${colors.background-alt}";
text = "#eceff4"; text = "${colors.foreground}";
indicator = "#ff00ff"; indicator = "${colors.undefined}";
childBorder = "#ff00ff"; childBorder = "${colors.undefined}";
}; };
focusedInactive = { focusedInactive = {
border = "#434c5e"; border = "${colors.background-alt}";
background = "#434c5e"; background = "${colors.background-alt}";
text = "#e5e9f0"; text = "${colors.foreground}";
indicator = "#ff00ff"; indicator = "${colors.undefined}";
childBorder = "#ff00ff"; childBorder = "${colors.undefined}";
}; };
unfocused = { unfocused = {
border = "#2e3440"; border = "${colors.background}";
background = "#2e3440"; background = "${colors.background}";
text = "#e5e9f0"; text = "${colors.foreground}";
indicator = "#ff00ff"; indicator = "${colors.undefined}";
childBorder = "#ff00ff"; childBorder = "${colors.undefined}";
}; };
}; };
startup = [ startup = [

@ -1,10 +1,13 @@
{ pkgs, ... }: { ... }:
let
colors = import ./colors;
in
{ {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
# https://github.com/kovidgoyal/kitty-themes/blob/master/themes.json # https://github.com/kovidgoyal/kitty-themes/blob/master/themes.json
theme = "Everforest Dark Hard"; theme = "${colors.kitty-theme}";
font = { font = {
name = "FiraCode Nerd Font Mono"; name = "FiraCode Nerd Font Mono";
size = 12; size = 12;

Loading…
Cancel
Save