Switch alacritty for foot (terminal)

Use foot client / server setup (via systemd)
This commit is contained in:
Evie Litherland-Smith 2024-03-21 11:38:29 +00:00
parent 02e5b25669
commit 570efd117f
2 changed files with 48 additions and 4 deletions

44
home/foot/default.nix Normal file
View file

@ -0,0 +1,44 @@
{config, ...}: {
programs.foot = {
enable = true;
server.enable = true;
settings = {
main = {
# term = "xterm-256color";
title = "foot";
locked-title = "no";
font = with config.stylix.fonts; "${monospace.name}:size=${toString sizes.applications}";
dpi-aware = "yes";
pad = "10x10";
};
bell = {
urgent = "no";
notify = "no";
visual = "no";
};
cursor = {blink = "yes";};
mouse = {hide-when-typing = "no";};
colors = with config.lib.stylix.colors; rec {
alpha = config.stylix.opacity.terminal;
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

@ -15,7 +15,7 @@
../rofi/default.nix
../swaync/default.nix
../avizo/default.nix
../alacritty/default.nix
../foot/default.nix
../emacs/default.nix
../nyxt/default.nix
../obs/default.nix
@ -31,7 +31,7 @@
programs = {
rofi = with pkgs; {
package = rofi-wayland;
terminal = "${alacritty}/bin/alacritty";
terminal = "${config.programs.foot.package}/bin/footclient";
pass.package = rofi-pass-wayland;
};
zellij.settings.copy_command = "wl-copy";
@ -253,7 +253,7 @@
];
bind = let
withTerm = {
term ? "alacritty",
term ? "foot",
package ? config.programs.${term}.package,
progname,
args ? "",
@ -289,7 +289,7 @@
"SUPER SHIFT, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw"
# Common program shortcuts
"SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
"SUPER, Return, exec, ${foot.package}/bin/footclient"
"SUPER, E, exec, ${emacs.finalPackage}/bin/emacsclient -c"
# Rofi binds