From b9d5f79703f09ea897616a75f38c927daee09cf9 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 30 Apr 2024 01:07:01 +0200 Subject: [PATCH] feat: add foot scrollback options --- modules/home-manager/application/foot/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/application/foot/default.nix b/modules/home-manager/application/foot/default.nix index 18496b2..120d239 100644 --- a/modules/home-manager/application/foot/default.nix +++ b/modules/home-manager/application/foot/default.nix @@ -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"; };