mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-07 08:12:49 +00:00
feat: flavours colorscheme
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# Base16 {{scheme-name}} - kitty color config
|
||||
# Scheme by {{scheme-author}}
|
||||
background #{{base00-hex}}
|
||||
foreground #{{base05-hex}}
|
||||
selection_background #{{base05-hex}}
|
||||
selection_foreground #{{base00-hex}}
|
||||
url_color #{{base04-hex}}
|
||||
cursor #{{base05-hex}}
|
||||
active_border_color #{{base03-hex}}
|
||||
inactive_border_color #{{base01-hex}}
|
||||
active_tab_background #{{base00-hex}}
|
||||
active_tab_foreground #{{base05-hex}}
|
||||
inactive_tab_background #{{base01-hex}}
|
||||
inactive_tab_foreground #{{base04-hex}}
|
||||
tab_bar_background #{{base01-hex}}
|
||||
|
||||
# normal
|
||||
color0 #{{base00-hex}}
|
||||
color1 #{{base08-hex}}
|
||||
color2 #{{base0B-hex}}
|
||||
color3 #{{base0A-hex}}
|
||||
color4 #{{base0D-hex}}
|
||||
color5 #{{base0E-hex}}
|
||||
color6 #{{base0C-hex}}
|
||||
color7 #{{base05-hex}}
|
||||
|
||||
# bright
|
||||
color8 #{{base03-hex}}
|
||||
color9 #{{base09-hex}}
|
||||
color10 #{{base01-hex}}
|
||||
color11 #{{base02-hex}}
|
||||
color12 #{{base04-hex}}
|
||||
color13 #{{base06-hex}}
|
||||
color14 #{{base0F-hex}}
|
||||
color15 #{{base07-hex}}
|
||||
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