Files
NixOS-Configs/home/foot.nix

75 lines
2.1 KiB
Nix

{ pkgs, inputs, ... }:
let
herdrPkg = if (inputs ? herdr && inputs.herdr ? packages && inputs.herdr.packages ? ${pkgs.stdenv.hostPlatform.system})
then inputs.herdr.packages.${pkgs.stdenv.hostPlatform.system}.default
else (pkgs.herdr or null);
herdrPicker = pkgs.writeShellScriptBin "herdr-picker" (builtins.readFile ./scripts/herdr-picker.sh);
in
{
home.packages = (if herdrPkg != null then [ herdrPkg ] else []) ++ [
herdrPicker
];
programs.foot = {
enable = true;
settings = {
main = {
font = "JetBrainsMono Nerd Font:size=15";
font-bold = "JetBrainsMono Nerd Font:size=15:weight=bold";
font-italic = "JetBrainsMono Nerd Font:size=15:slant=italic";
pad = "16x16 center";
shell = "${herdrPicker}/bin/herdr-picker";
selection-target = "clipboard";
};
scrollback = {
lines = 10000;
multiplier = 3.0;
};
cursor = {
style = "beam";
blink = "yes";
beam-thickness = 1.5;
};
mouse = {
hide-when-typing = "yes";
};
colors = {
alpha = 0.90;
background = "18181a";
foreground = "f2f2f7";
# macOS Catalina Apple System Dark Palette
regular0 = "1c1c1e"; # Black / Slate
regular1 = "ff453a"; # Apple Red
regular2 = "30d158"; # Apple Green
regular3 = "ffd60a"; # Apple Yellow
regular4 = "0a84ff"; # Apple Blue
regular5 = "bf5af2"; # Apple Purple
regular6 = "64d2ff"; # Apple Cyan
regular7 = "f2f2f7"; # Apple Light Gray
# Bright Colors
bright0 = "636366"; # Gray
bright1 = "ff6961"; # Bright Red
bright2 = "34c759"; # Bright Green
bright3 = "ffe066"; # Bright Yellow
bright4 = "409cff"; # Bright Blue
bright5 = "c774f4"; # Bright Purple
bright6 = "70d7ff"; # Bright Cyan
bright7 = "ffffff"; # Pure White
# Selection & URLs
selection-foreground = "ffffff";
selection-background = "0058d0"; # Apple selection blue
urls = "0a84ff";
};
};
};
}