mirror of
https://github.com/danth/stylix
synced 2024-11-10 06:34:15 +00:00
Add a xresources module (#38)
Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
This commit is contained in:
parent
47412549b0
commit
f123771bd9
1 changed files with 28 additions and 0 deletions
28
modules/xresources/hm.nix
Normal file
28
modules/xresources/hm.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
|
||||
with config.stylix.fonts;
|
||||
|
||||
let
|
||||
themeFile = config.lib.stylix.colors {
|
||||
templateRepo = pkgs.fetchFromGitHub {
|
||||
owner = "tinted-theming";
|
||||
repo = "base16-xresources";
|
||||
rev = "6711cf4fa61e903e52ef6eac186b83e04a0397d8";
|
||||
sha256 = "sha256-WazWviLhQRCyF9EBi2IDn9h8wrKc00PpqtltFDpUP5Q=";
|
||||
};
|
||||
};
|
||||
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;
|
||||
"*.renderFont" = true;
|
||||
};
|
||||
extraConfig = builtins.readFile themeFile;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue