mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-08 00:32:53 +00:00
feat: flavours colorscheme
This commit is contained in:
25
modules/home-manager/theme/integrations/kitty/default.nix
Normal file
25
modules/home-manager/theme/integrations/kitty/default.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user