mirror of
https://github.com/danth/stylix
synced 2024-11-22 04:03:09 +00:00
Embed Xresources template to avoid IFD (#168)
This commit is contained in:
parent
eb007b79bd
commit
feceaa9d81
4 changed files with 24 additions and 37 deletions
17
flake.lock
17
flake.lock
|
@ -130,22 +130,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16-xresources": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1696726575,
|
||||
"narHash": "sha256-btDlG5hF+CRM4NWJ7dRwQJYy0GTAYsg9B56kJ9uUeUk=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-xresources",
|
||||
"rev": "98d029dbb19fbc7e8c3e3b3fba0d4f946b5da760",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-xresources",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -224,7 +208,6 @@
|
|||
"base16-kitty": "base16-kitty",
|
||||
"base16-tmux": "base16-tmux",
|
||||
"base16-vim": "base16-vim",
|
||||
"base16-xresources": "base16-xresources",
|
||||
"flake-compat": "flake-compat",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs"
|
||||
|
|
|
@ -43,10 +43,6 @@
|
|||
url = "github:chriskempson/base16-vim";
|
||||
flake = false;
|
||||
};
|
||||
base16-xresources = {
|
||||
url = "github:tinted-theming/base16-xresources";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
|
@ -1,24 +1,33 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
with config.stylix.fonts;
|
||||
|
||||
let
|
||||
themeFile = config.lib.stylix.colors {
|
||||
templateRepo = config.lib.stylix.templates.base16-xresources;
|
||||
};
|
||||
in
|
||||
{
|
||||
options.stylix.targets.xresources.enable =
|
||||
config.lib.stylix.mkEnableTarget "Xresources" true;
|
||||
|
||||
config = lib.mkIf config.stylix.targets.xresources.enable {
|
||||
xresources = {
|
||||
properties = {
|
||||
"*.faceName" = monospace.name;
|
||||
"*.faceSize" = sizes.terminal;
|
||||
"*.renderFont" = true;
|
||||
};
|
||||
extraConfig = builtins.readFile themeFile;
|
||||
xresources.properties = with config.lib.stylix.colors.withHashtag; with config.stylix.fonts; {
|
||||
"*.faceName" = monospace.name;
|
||||
"*.faceSize" = sizes.terminal;
|
||||
"*.renderFont" = true;
|
||||
"*foreground" = base05;
|
||||
"*background" = base00;
|
||||
"*cursorColor" = base05;
|
||||
"*color0" = base00;
|
||||
"*color1" = base08;
|
||||
"*color2" = base0B;
|
||||
"*color3" = base0A;
|
||||
"*color4" = base0D;
|
||||
"*color5" = base0E;
|
||||
"*color6" = base0C;
|
||||
"*color7" = base05;
|
||||
"*color8" = base03;
|
||||
"*color9" = base09;
|
||||
"*color10" = base01;
|
||||
"*color11" = base02;
|
||||
"*color12" = base04;
|
||||
"*color13" = base06;
|
||||
"*color14" = base0F;
|
||||
"*color15" = base07;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ inputs:
|
|||
base16-kitty
|
||||
base16-tmux
|
||||
base16-vim
|
||||
base16-xresources
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue