feat: add foot scrollback options

This commit is contained in:
Yorick Barbanneau 2024-04-30 01:07:01 +02:00
parent 1f599ab18f
commit b9d5f79703

View file

@ -1,12 +1,19 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.application.zathura;
cfg = config.modules.application.foot;
in
{
options.modules.application.foot = {
enable = mkEnableOption "enable Foot terminal emulator";
scrollback-lines = mkOption {
type = types.int;
default = 2500;
description = "numbers of scrollback lines in history";
};
};
config = mkIf cfg.enable {
programs.foot = {
enable = true;
@ -48,6 +55,10 @@ in
jump-labels = "181818 f7ca88";
scrollback-indicator= "181818 b8b8b8";
};
scrollback = {
lines = cfg.scrollback-lines;
indicator-format = "percentage";
};
csd = {
preferred = "none";
};