Switch alacritty for foot terminal

This commit is contained in:
Evie Litherland-Smith 2024-05-27 17:06:52 +01:00
parent 4f1aa64152
commit f4e3f29392
3 changed files with 54 additions and 5 deletions

View file

@ -7,6 +7,7 @@
...
}: {
imports = [
./foot/default.nix
./alacritty/default.nix
./avizo/default.nix
./fuzzel/default.nix
@ -55,7 +56,7 @@
};
};
modifier = "Mod4";
terminal = "${config.programs.alacritty.package}/bin/alacritty";
terminal = "${config.programs.foot.package}/bin/foot";
menu = "${config.programs.fuzzel.package}/bin/fuzzel";
workspaceAutoBackAndForth = true;
bars = [];

View file

@ -0,0 +1,48 @@
{
config,
fonts,
...
}: {
programs.foot = {
enable = true;
server.enable = true;
settings = {
main = {
# term = "xterm-256color";
# title = "foot";
locked-title = false;
font = "${fonts.monospace.name}:size=${toString fonts.sizes.applications}";
dpi-aware = false;
pad = "10x10";
};
bell = {
urgent = false;
notify = false;
visual = false;
};
cursor = {blink = true;};
mouse = {hide-when-typing = true;};
colors = with config.scheme; rec {
alpha = 0.9;
background = base00;
foreground = base05;
regular0 = base02;
regular1 = red;
regular2 = green;
regular3 = yellow;
regular4 = blue;
regular5 = magenta;
regular6 = cyan;
regular7 = base05;
bright0 = base03;
bright1 = regular1;
bright2 = regular2;
bright3 = regular3;
bright4 = regular4;
bright5 = regular5;
bright6 = regular6;
bright7 = base04;
};
};
};
}

View file

@ -17,10 +17,10 @@
fields = "filename,name,generic,categories";
fuzzy = true;
terminal = with config.programs; "${
if alacritty.enable
then alacritty.package
else pkgs.alacritty
}/bin/alacritty -e";
if foot.enable
then foot.package
else pkgs.foot
}/bin/foot -e";
lines = 20;
width = 80;
tabs = 4;