1
0
Fork 0
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:
awwpotato 2025-05-11 16:47:55 -07:00 committed by GitHub
parent ff915842e4
commit 5daf23a38f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 120 additions and 12 deletions

View file

@ -1 +1,4 @@
{ zellij-enable-shells = ./enable-shells.nix; }
{
zellij-enable-shells = ./enable-shells.nix;
zellij-theme = ./theme.nix;
}

View 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
}
}
}
''}
'';
}