nixos-config/users/rouven/modules/foot/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2023-02-11 12:58:28 +01:00
{ config, pkgs, nix-colors, ... }:
{
home.packages = with pkgs; [
libsixel
];
programs.foot = {
enable = true;
server.enable = true;
settings = rec {
main = {
shell = "${pkgs.zsh}/bin/zsh";
dpi-aware = "yes";
2023-02-25 16:30:02 +01:00
font = "monospace:family=Iosevka Nerd Font, size=8";
2023-02-11 12:58:28 +01:00
};
cursor.color = "${colors.background} ${colors.foreground}";
2023-02-12 14:56:42 +01:00
colors =
let
colors = config.colorScheme.colors;
in
{
2023-02-14 19:49:31 +01:00
alpha = if (config.colorScheme.kind == "dark") then 0.0 else 1.0;
2023-02-12 14:56:42 +01:00
background = colors.base00;
foreground = colors.base05;
regular0 = colors.base02;
regular1 = colors.base08;
regular2 = colors.base0A;
regular3 = colors.base0B;
regular4 = colors.base0D;
regular5 = colors.base0E;
regular6 = colors.base0C;
regular7 = colors.base05;
bright0 = colors.base03;
bright1 = colors.base08;
bright2 = colors.base0A;
bright3 = colors.base0B;
bright4 = colors.base0D;
bright5 = colors.base0E;
bright6 = colors.base0C;
bright7 = colors.base07;
};
2023-02-11 12:58:28 +01:00
};
};
}