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, ... }: { lib, config, ... }:
with lib; with lib;
let let
cfg = config.modules.application.zathura; cfg = config.modules.application.foot;
in in
{ {
options.modules.application.foot = { options.modules.application.foot = {
enable = mkEnableOption "enable Foot terminal emulator"; 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 { config = mkIf cfg.enable {
programs.foot = { programs.foot = {
enable = true; enable = true;
@ -48,6 +55,10 @@ in
jump-labels = "181818 f7ca88"; jump-labels = "181818 f7ca88";
scrollback-indicator= "181818 b8b8b8"; scrollback-indicator= "181818 b8b8b8";
}; };
scrollback = {
lines = cfg.scrollback-lines;
indicator-format = "percentage";
};
csd = { csd = {
preferred = "none"; preferred = "none";
}; };