nichts/modules/programs/gui/foot.nix

79 lines
2.1 KiB
Nix
Raw Normal View History

2024-07-06 15:53:16 +02:00
{
config,
lib,
pkgs,
...
}: let
2024-07-20 13:18:01 +02:00
cfg = config.modules.system.programs.terminals.foot;
inherit (config.modules.other.system) username;
2024-07-20 13:18:01 +02:00
inherit (lib) mkIf;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
2024-09-03 21:50:17 +02:00
home.packages = with pkgs; [
libsixel # for displaying images
];
programs.foot = {
enable = true;
2024-08-21 23:11:59 +02:00
package = pkgs.foot;
settings = {
main = {
2024-09-03 22:00:46 +02:00
term = "foot";
2024-05-22 14:29:45 +02:00
app-id = "foot";
title = "foot";
locked-title = "no";
2024-09-03 15:20:35 +02:00
shell = "fish";
2024-09-03 15:20:35 +02:00
font = "Iosevka Nerd Font:size=14";
font-bold = "Iosevka Nerd Font:size=14";
2024-08-17 11:50:52 +02:00
2024-09-03 22:00:46 +02:00
selection-target = "primary";
2024-09-03 15:20:35 +02:00
dpi-aware = false;
pad = "0x0 center";
};
2024-08-13 11:09:42 +02:00
2024-08-05 16:22:19 +02:00
desktop-notifications.command = "${pkgs.libnotify}/bin/notify-send -a \${app-id} -i \${app-id} \${title} \${body}";
2024-08-13 11:09:42 +02:00
bell = {
urgent = "yes";
notify = "yes";
command = "${pkgs.libnotify}/bin/notify-send bell";
command-focused = "no";
};
2024-08-13 11:09:42 +02:00
scrollback = {
2024-09-03 15:20:35 +02:00
lines = 10000;
multiplier = 10.0;
indicator-position = "relative";
indicator-format = "line";
};
2024-08-13 11:09:42 +02:00
url = {
launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}";
label-letters = "sadfjklewcmpgh";
osc8-underline = "always";
2024-07-06 15:53:16 +02:00
protocols = "http, https, ftp, ftps, file, gemini, gopher, irc, ircs";
uri-characters = ''
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]'';
};
2024-08-13 11:09:42 +02:00
2024-09-03 15:20:35 +02:00
tweak = {
font-monospace-warn = "no";
sixel = "yes";
};
cursor = {
2024-07-24 17:47:16 +02:00
style = "beam";
blink = "true";
};
2024-08-13 11:09:42 +02:00
mouse = {
2024-09-03 15:20:35 +02:00
hide-when-typing = "yes"; # not really needed since we already enable this in Hyprland.
alternate-scroll-mode = "yes";
};
};
};
};
};
}