diff --git a/home/foot/default.nix b/home/foot/default.nix new file mode 100644 index 00000000..e00b32f7 --- /dev/null +++ b/home/foot/default.nix @@ -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; + }; + }; + }; +} diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index ac6efb49..3bfc08fb 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -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