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, ... }:
|
{ 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";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue