feat: flavours colorscheme

This commit is contained in:
2024-04-07 17:05:31 +02:00
parent 136cf83105
commit 040515003f
6 changed files with 104 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
{ config, lib, ... }:
with lib;
let
cfg = config.theme.base16;
in
{
config = mkIf cfg.enable {
programs.kitty.extraConfig = ''
include ./current-theme.conf
'';
xdg.configFile."flavours/templates/kitty/templates/default.mustache".source = ./default.mustache;
theme.base16.options.items = [
{
file = "${config.xdg.configHome}/kitty/current-theme.conf";
template = "kitty";
hook = "kill -SIGUSR1 $(pgrep kitty)";
rewrite = true;
}
];
};
}