kitty: add quick-access-terminal configuration
This commit is contained in:
parent
26993d87fd
commit
d587e11cef
5 changed files with 65 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue