blob: 5508feb75e12ba543ca8ebb37fa7625d09565568 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{ pkgs, config, lib, ... }:
{
options.tools.terminal.kitty = {
enable = lib.mkEnableOption "Enables kitty. WARNING! Currently faces problems with color rendering with picom.";
};
config = lib.mkIf config.tools.terminal.kitty.enable {
assertions = [
{
assertion = config.desktop.xdg-portal.enable;
message ="Module tools.terminal.kitty requires desktop.xdg-portal module to be enabled.";
}
];
programs.kitty.enable = true;
tools.terminal.default = lib.mkDefault "kitty";
tools.terminal.command =
if config.tools.terminal.default == "kitty" then
lib.mkForce "${pkgs.kitty}/bin/kitty"
else "";
programs.kitty.settings = with config.scheme.withHashtag; {
window_padding_width = config.desktop.window-manager.gap;
font_size = config.fonts.size;
font_family = config.fonts.normal;
filter_notification = "all";
update_check_interval = 0; # disable notifications
scrollback_indicator_opacity = "0.5";
dynamic_background_opacity = false;
allow_remote_control = false;
enable_audio_bell = false;
background = base00;
foreground = base05;
text_composition_strategy = "legacy";
color0 = base00; # Black
color8 = base00; # Black
color1 = base08; # Red
color9 = base08; # Red
color2 = base0B; # Green
color10 = base0B; # Green
color3 = base0A; # Yellow
color11 = base0A; # Yellow
color4 = base0D; # Blue
color12 = base0D; # Blue
color5 = base0E; # Magenta
color13 = base0E; # Magenta
color6 = base0C; # Cyan
color14 = base0C; # Cyan
color7 = base05; # White
color15 = base05; # White
selection_background = base03;
selection_foreground = base00;
shell = config.shell.command;
};
};
}
|