nixos-config/users/simon/modules/foot.nix
Simon Bruder bdd4956599
Switch from alacritty to foot
Some programs have difficulties with foot as TERM (e. g. aerc’s
terminal). Therefore, it is manually set to xterm-256color and true
colour support is forced in tmux.
2022-07-08 11:51:04 +02:00

60 lines
1.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, nixosConfig, ... }:
let
common = import ./common.nix;
solarized = lib.mapAttrs (k: v: builtins.substring 1 6 v) common.colorschemes.solarized;
in
{
programs.foot = {
enable = nixosConfig.sbruder.gui.enable;
settings = {
main = {
font = "monospace:size=13.5, emoji:size=11";
dpi-aware = "no";
pad = "0x0";
term = "xterm-256color";
};
bell = {
urgent = "yes";
};
mouse = {
hide-when-typing = "yes";
};
cursor = {
color = "${solarized.base03} ${solarized.base0}";
};
colors = {
background = solarized.base03;
foreground = solarized.base0;
regular0 = solarized.base02;
regular1 = solarized.red;
regular2 = solarized.green;
regular3 = solarized.yellow;
regular4 = solarized.blue;
regular5 = solarized.magenta;
regular6 = solarized.cyan;
regular7 = solarized.base2;
bright0 = solarized.base03;
bright1 = solarized.orange;
bright2 = solarized.base01;
bright3 = solarized.base00;
bright4 = solarized.base0;
bright5 = solarized.violet;
bright6 = solarized.base1;
bright7 = solarized.base3;
};
key-bindings = {
clipboard-copy = "Control+Mod1+c XF86Copy";
clipboard-paste = "Control+Mod1+v XF86Paste";
spawn-terminal = "none"; # I dont need it
};
};
};
}