alacritty -> foot

This commit is contained in:
Casper V. Kristensen 2024-05-25 03:27:23 +02:00
parent 318c1de7dd
commit 1dd6d00c36
4 changed files with 54 additions and 25 deletions

View file

@ -1,22 +0,0 @@
{home-manager, ...}: {
# Terminal emulator
# https://wiki.archlinux.org/title/Alacritty
home-manager.users.caspervk = {
programs.alacritty = {
enable = true;
settings = {
key_bindings = [
# It's easy to open a new terminal using Mod+Enter in sway, but it
# always opens in the home directly. This binds Control+Shift+Enter
# to open a new terminal in the current directory.
{
key = "Return";
mods = "Control|Shift";
action = "SpawnNewInstance";
}
];
};
};
};
}

View file

@ -1,15 +1,15 @@
{...}: { {...}: {
imports = [ imports = [
./alacritty.nix
./clipman.nix ./clipman.nix
./flatpak.nix ./flatpak.nix
./foot.nix
./gammastep.nix ./gammastep.nix
./network.nix ./network.nix
./pipewire.nix ./pipewire.nix
./programs.nix ./programs.nix
./rofi.nix
./ssh.nix ./ssh.nix
./sway.nix ./sway.nix
./virtd.nix ./virtd.nix
./rofi.nix
]; ];
} }

51
modules/desktop/foot.nix Normal file
View file

@ -0,0 +1,51 @@
{home-manager, ...}: {
# Terminal emulator
# https://codeberg.org/dnkl/foot
home-manager.users.caspervk = {
programs.foot = {
enable = true;
# https://man.archlinux.org/man/foot.ini.5.en
settings = {
main = {
font = "monospace:size=10.25";
letter-spacing = "1";
};
colors = {
# https://alacritty.org/config-alacritty.html
foreground = "d8d8d8";
background = "181818";
regular0 = "181818"; # black
regular1 = "ac4242"; # red
regular2 = "90a959"; # green
regular3 = "f4bf75"; # yellow
regular4 = "6a9fb5"; # blue
regular5 = "aa759f"; # magenta
regular6 = "75b5aa"; # cyan
regular7 = "d8d8d8"; # white
bright0 = "6b6b6b"; # black
bright1 = "c55555"; # red
bright2 = "aac474"; # green
bright3 = "feca88"; # yellow
bright4 = "82b8c8"; # blue
bright5 = "c28cb8"; # magenta
bright6 = "93d3c3"; # cyan
bright7 = "f8f8f8"; # white
dim0 = "0f0f0f"; # black
dim1 = "712b2b"; # red
dim2 = "5f6f3a"; # green
dim3 = "a17e4d"; # yellow
dim4 = "456877"; # blue
dim5 = "704d68"; # magenta
dim6 = "4d7770"; # cyan
dim7 = "8e8e8e"; # white
};
key-bindings = {
# HOW is this not the default?
scrollback-home = "Shift+Home";
scrollback-end = "Shift+End";
};
};
};
};
}

View file

@ -117,7 +117,7 @@
text = "#ffffff"; text = "#ffffff";
}; };
}; };
terminal = "alacritty"; terminal = "foot";
bars = [{command = "${pkgs.waybar}/bin/waybar";}]; bars = [{command = "${pkgs.waybar}/bin/waybar";}];
}; };