mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Refactor kitty config
This commit is contained in:
parent
f4a6faf1d3
commit
068841280e
1 changed files with 7 additions and 9 deletions
|
|
@ -10,7 +10,14 @@
|
||||||
basePackage = pkgs.kitty;
|
basePackage = pkgs.kitty;
|
||||||
programs.kitty.prependFlags =
|
programs.kitty.prependFlags =
|
||||||
let
|
let
|
||||||
|
theme-name =
|
||||||
|
{
|
||||||
|
dark = "default";
|
||||||
|
light = "GitHub_Light";
|
||||||
|
}
|
||||||
|
.${theme};
|
||||||
kitty-config = pkgs.writeText "kitty-config" ''
|
kitty-config = pkgs.writeText "kitty-config" ''
|
||||||
|
include ${pkgs.kitty-themes}/share/kitty-themes/themes/${theme-name}.conf
|
||||||
font_family JetBrainsMono Nerd Font
|
font_family JetBrainsMono Nerd Font
|
||||||
background_opacity 0.85
|
background_opacity 0.85
|
||||||
cursor_shape beam
|
cursor_shape beam
|
||||||
|
|
@ -18,19 +25,10 @@
|
||||||
enable_audio_bell no
|
enable_audio_bell no
|
||||||
update_check_interval 0
|
update_check_interval 0
|
||||||
'';
|
'';
|
||||||
theme-file =
|
|
||||||
{
|
|
||||||
dark = "default.conf";
|
|
||||||
light = "GitHub_Light.conf";
|
|
||||||
}
|
|
||||||
.${theme};
|
|
||||||
kitty-theme = "include=${pkgs.kitty-themes}/share/kitty-themes/themes/${theme-file}";
|
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
"--config"
|
"--config"
|
||||||
kitty-config
|
kitty-config
|
||||||
"--override"
|
|
||||||
kitty-theme
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue