2023-09-08 16:10:15 +02:00
|
|
|
{
|
2023-10-13 21:04:24 +02:00
|
|
|
config,
|
2023-09-08 16:10:15 +02:00
|
|
|
inputs,
|
2023-10-13 21:04:24 +02:00
|
|
|
lib,
|
2023-09-08 16:10:15 +02:00
|
|
|
pkgs,
|
|
|
|
...
|
2024-05-05 12:38:40 +02:00
|
|
|
}: let
|
2023-10-13 21:04:24 +02:00
|
|
|
cfg = config.myOptions.programs.foot;
|
2024-04-14 18:49:29 +02:00
|
|
|
inherit (config.myOptions.other.system) username;
|
2024-05-05 12:38:40 +02:00
|
|
|
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2023-10-13 21:04:24 +02:00
|
|
|
in {
|
|
|
|
options.myOptions.programs.foot = {
|
2024-04-05 22:59:32 +02:00
|
|
|
enable = mkEnableOption "foot";
|
2024-04-05 23:02:22 +02:00
|
|
|
server = mkEnableOption "foot server mode";
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
2023-09-08 16:10:15 +02:00
|
|
|
|
2023-10-13 21:04:24 +02:00
|
|
|
config = mkIf cfg.enable {
|
2024-02-14 15:39:23 +01:00
|
|
|
environment.sessionVariables = {
|
|
|
|
TERM = "foot";
|
|
|
|
};
|
2024-02-29 00:29:56 +01:00
|
|
|
home-manager.users.${username} = {
|
2023-10-13 21:04:24 +02:00
|
|
|
programs.foot = {
|
|
|
|
enable = true;
|
|
|
|
package = inputs.nixpkgs-wayland.packages.${pkgs.system}.foot;
|
|
|
|
server.enable = cfg.server;
|
|
|
|
settings = {
|
|
|
|
main = {
|
2024-02-12 19:26:58 +01:00
|
|
|
term = "foot";
|
2023-10-13 21:04:24 +02:00
|
|
|
app-id = "foot";
|
|
|
|
title = "foot";
|
|
|
|
locked-title = "no";
|
2023-09-08 16:10:15 +02:00
|
|
|
|
2023-10-13 21:04:24 +02:00
|
|
|
font = "JetBrains Mono Nerd Font:size=16";
|
|
|
|
line-height = 20;
|
|
|
|
letter-spacing = 0;
|
|
|
|
horizontal-letter-offset = 0;
|
|
|
|
vertical-letter-offset = -0.75;
|
|
|
|
box-drawings-uses-font-glyphs = "no";
|
|
|
|
dpi-aware = "no";
|
2023-09-08 16:10:15 +02:00
|
|
|
|
2023-10-13 21:04:24 +02:00
|
|
|
initial-window-size-chars = "104x36";
|
|
|
|
initial-window-mode = "windowed";
|
|
|
|
pad = "5x5 center";
|
|
|
|
resize-delay-ms = 100;
|
2023-09-08 16:10:15 +02:00
|
|
|
|
2023-10-13 21:04:24 +02:00
|
|
|
notify = "${pkgs.libnotify}/bin/notify-send -a \${app-id} -i \${app-id} \${title} \${body}";
|
|
|
|
|
|
|
|
bold-text-in-bright = "no";
|
|
|
|
word-delimiters = ",│`|:\"'()[]{}<>";
|
|
|
|
selection-target = "primary";
|
|
|
|
};
|
|
|
|
bell = {
|
|
|
|
urgent = "yes";
|
|
|
|
notify = "yes";
|
2024-05-05 18:01:34 +02:00
|
|
|
command = "${pkgs.libnotify}/bin/notify-send bell";
|
2023-10-13 21:04:24 +02:00
|
|
|
command-focused = "no";
|
|
|
|
};
|
|
|
|
scrollback = {
|
|
|
|
lines = 100000;
|
|
|
|
multiplier = 10.0;
|
|
|
|
indicator-position = "relative";
|
|
|
|
indicator-format = "line";
|
|
|
|
};
|
|
|
|
url = {
|
|
|
|
launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}";
|
|
|
|
label-letters = "sadfjklewcmpgh";
|
|
|
|
osc8-underline = "always";
|
|
|
|
protocols = "http, https, ftp, ftps, file, gemini, gopher, irc, ircs";
|
|
|
|
uri-characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+=\"'()[]";
|
|
|
|
};
|
|
|
|
cursor = {
|
|
|
|
style = "block";
|
|
|
|
blink = "no";
|
|
|
|
};
|
|
|
|
mouse = {
|
|
|
|
hide-when-typing = "yes";
|
|
|
|
alternate-scroll-mode = "yes";
|
|
|
|
};
|
|
|
|
colors = {
|
|
|
|
alpha = 0.85;
|
2023-12-21 13:49:33 +01:00
|
|
|
foreground = "cdd6f4"; # Text
|
|
|
|
background = "1e1e2e"; # Base
|
|
|
|
regular0 = "45475a"; # Surface 1
|
|
|
|
regular1 = "f38ba8"; # red
|
|
|
|
regular2 = "a6e3a1"; # green
|
|
|
|
regular3 = "f9e2af"; # yellow
|
|
|
|
regular4 = "89b4fa"; # blue
|
|
|
|
regular5 = "f5c2e7"; # pink
|
|
|
|
regular6 = "94e2d5"; # teal
|
|
|
|
regular7 = "bac2de"; # Subtext 1
|
|
|
|
bright0 = "585b70"; # Surface 2
|
|
|
|
bright1 = "f38ba8"; # red
|
|
|
|
bright2 = "a6e3a1"; # green
|
|
|
|
bright3 = "f9e2af"; # yellow
|
|
|
|
bright4 = "89b4fa"; # blue
|
|
|
|
bright5 = "f5c2e7"; # pink
|
|
|
|
bright6 = "94e2d5"; # teal
|
|
|
|
bright7 = "a6adc8"; # Subtext 0
|
2023-10-13 21:04:24 +02:00
|
|
|
};
|
|
|
|
csd = {
|
|
|
|
preferred = "server";
|
|
|
|
};
|
|
|
|
key-bindings = {
|
|
|
|
show-urls-launch = "Control+Shift+u";
|
|
|
|
unicode-input = "Control+Shift+i";
|
|
|
|
};
|
|
|
|
mouse-bindings = {
|
|
|
|
selection-override-modifiers = "Shift";
|
|
|
|
primary-paste = "BTN_MIDDLE";
|
|
|
|
select-begin = "BTN_LEFT";
|
|
|
|
select-begin-block = "Control+BTN_LEFT";
|
|
|
|
select-extend = "BTN_RIGHT";
|
|
|
|
select-extend-character-wise = "Control+BTN_RIGHT";
|
|
|
|
select-word = "BTN_LEFT-2";
|
|
|
|
select-word-whitespace = "Control+BTN_LEFT-2";
|
|
|
|
#select-row = "BTN_LEFT-3";
|
|
|
|
};
|
|
|
|
};
|
2023-09-08 16:10:15 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|