2023-11-23 06:05:54 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.myFlake.home-manager.terminal;
|
|
|
|
in {
|
2023-11-05 09:21:37 +00:00
|
|
|
programs.kitty = {
|
|
|
|
enable = true;
|
2023-11-23 06:05:54 +00:00
|
|
|
settings = {
|
|
|
|
include =
|
|
|
|
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")
|
|
|
|
"${pkgs.vimPlugins.tokyonight-nvim}/extras/kitty/tokyonight_night.conf";
|
|
|
|
cursor_shape = cfg.cursorStyle;
|
|
|
|
font_size = cfg.fontSize;
|
|
|
|
window_padding_width = builtins.toString (cfg.padding * (3.0 / 4.0)); # px -> pt
|
|
|
|
|
|
|
|
confirm_os_window_close = 0;
|
|
|
|
};
|
2023-11-05 09:21:37 +00:00
|
|
|
};
|
|
|
|
}
|