programs.gnome-terminal: terminal options (#2042)
- Add support for showing bold as bright colors - Add support to configure the background transparency - Fix the scrollOnOutput, it was not being dumped to the config - Add tests! - Add myself as maintainer
This commit is contained in:
parent
1e8d0beae4
commit
e92f5bb79e
7 changed files with 132 additions and 4 deletions
|
|
@ -187,6 +187,12 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
boldIsBright = mkOption {
|
||||
default = null;
|
||||
type = types.nullOr types.bool;
|
||||
description = "Whether bold text is shown in bright colors.";
|
||||
};
|
||||
|
||||
deleteBinding = mkOption {
|
||||
default = "delete-sequence";
|
||||
type = eraseBinding;
|
||||
|
|
@ -234,6 +240,12 @@ let
|
|||
type = types.bool;
|
||||
description = "Turn on/off the terminal's bell.";
|
||||
};
|
||||
|
||||
transparencyPercent = mkOption {
|
||||
default = null;
|
||||
type = types.nullOr (types.ints.between 0 100);
|
||||
description = "Background transparency in percent.";
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
|
|
@ -241,6 +253,7 @@ let
|
|||
{
|
||||
audible-bell = pcfg.audibleBell;
|
||||
visible-name = pcfg.visibleName;
|
||||
scroll-on-output = pcfg.scrollOnOutput;
|
||||
scrollbar-policy = if pcfg.showScrollbar then "always" else "never";
|
||||
scrollback-lines = pcfg.scrollbackLines;
|
||||
cursor-shape = pcfg.cursorShape;
|
||||
|
|
@ -273,7 +286,9 @@ let
|
|||
} else {
|
||||
bold-color-same-as-fg = false;
|
||||
bold-color = pcfg.colors.boldColor;
|
||||
}) // (if (pcfg.colors.cursor != null) then {
|
||||
}) // optionalAttrs (pcfg.boldIsBright != null) {
|
||||
bold-is-bright = pcfg.boldIsBright;
|
||||
} // (if (pcfg.colors.cursor != null) then {
|
||||
cursor-colors-set = true;
|
||||
cursor-foreground-color = pcfg.colors.cursor.foreground;
|
||||
cursor-background-color = pcfg.colors.cursor.background;
|
||||
|
|
@ -285,10 +300,14 @@ let
|
|||
highlight-background-color = pcfg.colors.highlight.background;
|
||||
} else {
|
||||
highlight-colors-set = false;
|
||||
})));
|
||||
}) // optionalAttrs (pcfg.transparencyPercent != null) {
|
||||
background-transparency-percent = pcfg.transparencyPercent;
|
||||
use-theme-transparency = false;
|
||||
use-transparent-background = true;
|
||||
}));
|
||||
|
||||
in {
|
||||
meta.maintainers = [ maintainers.rycee ];
|
||||
meta.maintainers = with maintainers; [ kamadorueda rycee ];
|
||||
|
||||
options = {
|
||||
programs.gnome-terminal = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue