kitty: produce fewer empty lines
This generates a more compact configuration file.
This commit is contained in:
parent
76fbb1b15e
commit
4c8c1c9977
|
@ -133,28 +133,25 @@ in {
|
||||||
text = ''
|
text = ''
|
||||||
# Generated by Home Manager.
|
# Generated by Home Manager.
|
||||||
# See https://sw.kovidgoyal.net/kitty/conf.html
|
# See https://sw.kovidgoyal.net/kitty/conf.html
|
||||||
|
'' + concatStringsSep "\n" ([
|
||||||
|
|
||||||
${optionalString (cfg.font != null) ''
|
(optionalString (cfg.font != null) ''
|
||||||
font_family ${cfg.font.name}
|
font_family ${cfg.font.name}
|
||||||
${optionalString (cfg.font.size != null)
|
${optionalString (cfg.font.size != null)
|
||||||
"font_size ${toString cfg.font.size}"}
|
"font_size ${toString cfg.font.size}"}
|
||||||
''}
|
'')
|
||||||
|
|
||||||
${optionalString (cfg.theme != null) ''
|
(optionalString (cfg.theme != null) ''
|
||||||
include ${pkgs.kitty-themes}/${
|
include ${pkgs.kitty-themes}/${
|
||||||
(head (filter (x: x.name == cfg.theme) (builtins.fromJSON
|
(head (filter (x: x.name == cfg.theme) (builtins.fromJSON
|
||||||
(builtins.readFile "${pkgs.kitty-themes}/themes.json")))).file
|
(builtins.readFile "${pkgs.kitty-themes}/themes.json")))).file
|
||||||
}
|
}
|
||||||
''}
|
'')
|
||||||
|
(toKittyConfig cfg.settings)
|
||||||
${toKittyConfig cfg.settings}
|
(toKittyKeybindings cfg.keybindings)
|
||||||
|
(toKittyEnv cfg.environment)
|
||||||
${toKittyKeybindings cfg.keybindings}
|
cfg.extraConfig
|
||||||
|
]);
|
||||||
${toKittyEnv cfg.environment}
|
|
||||||
|
|
||||||
${cfg.extraConfig}
|
|
||||||
'';
|
|
||||||
} // optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
} // optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||||
onChange = ''
|
onChange = ''
|
||||||
${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true
|
${pkgs.procps}/bin/pkill -USR1 -u $USER kitty || true
|
||||||
|
|
|
@ -1,22 +1,15 @@
|
||||||
# Generated by Home Manager.
|
# Generated by Home Manager.
|
||||||
# See https://sw.kovidgoyal.net/kitty/conf.html
|
# See https://sw.kovidgoyal.net/kitty/conf.html
|
||||||
|
|
||||||
font_family DejaVu Sans
|
font_family DejaVu Sans
|
||||||
font_size 8
|
font_size 8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enable_audio_bell no
|
enable_audio_bell no
|
||||||
scrollback_lines 10000
|
scrollback_lines 10000
|
||||||
update_check_interval 0
|
update_check_interval 0
|
||||||
|
|
||||||
|
|
||||||
map ctrl+c copy_or_interrupt
|
map ctrl+c copy_or_interrupt
|
||||||
map ctrl+f>2 set_font_size 20
|
map ctrl+f>2 set_font_size 20
|
||||||
|
|
||||||
|
|
||||||
env LS_COLORS=1
|
env LS_COLORS=1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue