feat: add foot scrollback options
This commit is contained in:
parent
1f599ab18f
commit
b9d5f79703
1 changed files with 12 additions and 1 deletions
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue