kitty: add quick-access-terminal configuration
Some checks are pending
/ triage (push) Waiting to run
GitHub Pages / publish (ubuntu-latest) (push) Waiting to run

This commit is contained in:
Matt Bryant 2025-09-08 22:05:49 -07:00 committed by Austin Horstman
parent 26993d87fd
commit d587e11cef
5 changed files with 65 additions and 1 deletions

View file

@ -255,7 +255,25 @@ in
extraConfig = mkOption {
default = "";
type = types.lines;
description = "Additional configuration to add.";
description = "Additional configuration to add to kitty.conf.";
};
quickAccessTerminalConfig = mkOption {
type = types.attrsOf settingsValueType;
default = { };
example = literalExpression ''
{
start_as_hidden = false;
hide_on_focus_loss = false;
background_opacity = 0.85;
}
'';
description = ''
Configuration written to
{file}`$XDG_CONFIG_HOME/kitty/quick-access-terminal.conf`. See
<https://sw.kovidgoyal.net/kitty/kittens/quick-access-terminal/>
for the documentation.
'';
};
};
@ -319,6 +337,14 @@ in
'';
};
xdg.configFile."kitty/quick-access-terminal.conf" = mkIf (cfg.quickAccessTerminalConfig != { }) {
text = ''
# Generated by Home Manager.
# See https://sw.kovidgoyal.net/kitty/kittens/quick-access-terminal/
${toKittyConfig cfg.quickAccessTerminalConfig}
'';
};
home.activation.checkKittyTheme = mkIf (cfg.themeFile != null) (
let
themePath = "${pkgs.kitty-themes}/share/kitty-themes/themes/${cfg.themeFile}.conf";