-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
1e8d0be
commit e92f5bb
Showing
7 changed files
with
132 additions
and
4 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,16 @@ | |
github = "kalhauge"; | ||
githubId = 1182166; | ||
}; | ||
kamadorueda = { | ||
name = "Kevin Amado"; | ||
email = "[email protected]"; | ||
github = "kamadorueda"; | ||
githubId = 47480384; | ||
keys = [{ | ||
longkeyid = "rsa4096/0x04D0CEAF916A9A40"; | ||
fingerprint = "2BE3 BAFD 793E A349 ED1F F00F 04D0 CEAF 916A 9A40"; | ||
}]; | ||
}; | ||
kubukoz = { | ||
name = "Jakub Kozłowski"; | ||
email = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ gnome-terminal-1 = ./gnome-terminal-1.nix; } |
34 changes: 34 additions & 0 deletions
34
tests/modules/programs/gnome-terminal/gnome-terminal-1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[org/gnome/terminal/legacy] | ||
default-show-menubar=false | ||
schema-version=3 | ||
theme-variant='default' | ||
|
||
[org/gnome/terminal/legacy/profiles:] | ||
default='e0b782ed-6aca-44eb-8c75-62b3706b6220' | ||
list=@as ['e0b782ed-6aca-44eb-8c75-62b3706b6220'] | ||
|
||
[org/gnome/terminal/legacy/profiles:/:e0b782ed-6aca-44eb-8c75-62b3706b6220] | ||
allow-bold=true | ||
audible-bell=true | ||
background-color='#2E3436' | ||
background-transparency-percent=5 | ||
backspace-binding='ascii-delete' | ||
bold-color-same-as-fg=true | ||
bold-is-bright=true | ||
cursor-blink-mode='off' | ||
cursor-colors-set=false | ||
cursor-shape='underline' | ||
delete-binding='delete-sequence' | ||
foreground-color='#D3D7C1' | ||
highlight-colors-set=false | ||
login-shell=false | ||
palette=@as ['#000000','#AA0000','#00AA00','#AA5500','#0000AA','#AA00AA','#00AAAA','#AAAAAA','#555555','#FF5555','#55FF55','#FFFF55','#5555FF','#FF55FF','#55FFFF','#FFFFFF'] | ||
scroll-on-output=false | ||
scrollback-lines=1000000 | ||
scrollbar-policy='never' | ||
use-custom-command=false | ||
use-system-font=true | ||
use-theme-colors=false | ||
use-theme-transparency=false | ||
use-transparent-background=true | ||
visible-name='kamadorueda' |
63 changes: 63 additions & 0 deletions
63
tests/modules/programs/gnome-terminal/gnome-terminal-1.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
config = { | ||
nixpkgs.overlays = [ | ||
(self: super: { | ||
gnome.gnome-terminal = | ||
pkgs.writeScriptBin "dummy-gnome3-gnome-terminal" ""; | ||
}) | ||
]; | ||
|
||
programs.gnome-terminal = { | ||
enable = true; | ||
profile = { | ||
"e0b782ed-6aca-44eb-8c75-62b3706b6220" = { | ||
allowBold = true; | ||
audibleBell = true; | ||
backspaceBinding = "ascii-delete"; | ||
boldIsBright = true; | ||
colors = { | ||
backgroundColor = "#2E3436"; | ||
foregroundColor = "#D3D7C1"; | ||
palette = [ | ||
"#000000" | ||
"#AA0000" | ||
"#00AA00" | ||
"#AA5500" | ||
"#0000AA" | ||
"#AA00AA" | ||
"#00AAAA" | ||
"#AAAAAA" | ||
"#555555" | ||
"#FF5555" | ||
"#55FF55" | ||
"#FFFF55" | ||
"#5555FF" | ||
"#FF55FF" | ||
"#55FFFF" | ||
"#FFFFFF" | ||
]; | ||
}; | ||
cursorBlinkMode = "off"; | ||
cursorShape = "underline"; | ||
default = true; | ||
deleteBinding = "delete-sequence"; | ||
scrollbackLines = 1000000; | ||
scrollOnOutput = false; | ||
showScrollbar = false; | ||
transparencyPercent = 5; | ||
visibleName = "kamadorueda"; | ||
}; | ||
}; | ||
showMenubar = false; | ||
}; | ||
|
||
nmt.script = '' | ||
dconfIni=$(grep -oPm 1 '/nix/store/[a-z0-9]*?-hm-dconf.ini' $TESTED/activate) | ||
TESTED= assertFileContent $dconfIni ${./gnome-terminal-1.conf} | ||
''; | ||
}; | ||
} |