mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-07 01:21:03 +01:00
zellij: add themes option (#7031)
This commit is contained in:
parent
ff915842e4
commit
5daf23a38f
3 changed files with 120 additions and 12 deletions
|
|
@ -1 +1,4 @@
|
|||
{ zellij-enable-shells = ./enable-shells.nix; }
|
||||
{
|
||||
zellij-enable-shells = ./enable-shells.nix;
|
||||
zellij-theme = ./theme.nix;
|
||||
}
|
||||
|
|
|
|||
75
tests/modules/programs/zellij/theme.nix
Normal file
75
tests/modules/programs/zellij/theme.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
themes = {
|
||||
example.themes.example = {
|
||||
ribbon_unselected = {
|
||||
base = [
|
||||
0
|
||||
0
|
||||
0
|
||||
];
|
||||
background = [
|
||||
255
|
||||
153
|
||||
0
|
||||
];
|
||||
emphasis_0 = [
|
||||
255
|
||||
53
|
||||
94
|
||||
];
|
||||
emphasis_1 = [
|
||||
255
|
||||
255
|
||||
255
|
||||
];
|
||||
emphasis_2 = [
|
||||
0
|
||||
217
|
||||
227
|
||||
];
|
||||
emphasis_3 = [
|
||||
255
|
||||
0
|
||||
255
|
||||
];
|
||||
};
|
||||
};
|
||||
text = ''
|
||||
themes {
|
||||
example {
|
||||
ribbon_unselected {
|
||||
background 255 153 0
|
||||
base 0 0 0
|
||||
emphasis_0 255 53 94
|
||||
emphasis_1 255 255 255
|
||||
emphasis_2 0 217 227
|
||||
emphasis_3 255 0 255
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/zellij/themes/example.kdl
|
||||
assertFileContent home-files/.config/zellij/themes/text.kdl \
|
||||
${pkgs.writeText "theme-text-expected" ''
|
||||
themes {
|
||||
example {
|
||||
ribbon_unselected {
|
||||
background 255 153 0
|
||||
base 0 0 0
|
||||
emphasis_0 255 53 94
|
||||
emphasis_1 255 255 255
|
||||
emphasis_2 0 217 227
|
||||
emphasis_3 255 0 255
|
||||
}
|
||||
}
|
||||
}
|
||||
''}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue