ptyxis: init module (#7075)
This commit is contained in:
parent
d2263ce5f4
commit
74d31e1165
5 changed files with 115 additions and 0 deletions
|
|
@ -392,6 +392,7 @@ import nmtSrc {
|
|||
./modules/programs/onagre
|
||||
./modules/programs/onedrive
|
||||
./modules/programs/pqiv
|
||||
./modules/programs/ptyxis
|
||||
./modules/programs/rbw
|
||||
./modules/programs/rofi
|
||||
./modules/programs/rofi-pass
|
||||
|
|
|
|||
3
tests/modules/programs/ptyxis/default.nix
Normal file
3
tests/modules/programs/ptyxis/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
ptyxis-basic-palette = ./palette.nix;
|
||||
}
|
||||
36
tests/modules/programs/ptyxis/palette.nix
Normal file
36
tests/modules/programs/ptyxis/palette.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.ptyxis = {
|
||||
enable = true;
|
||||
palettes.myTheme = {
|
||||
Palette.Name = "My awesome theme";
|
||||
Light = {
|
||||
Foreground = "#E2E2E3";
|
||||
Background = "#2C2E34";
|
||||
Color0 = "#2C2E34";
|
||||
Color1 = "#FC5D7C";
|
||||
Color2 = "#9ED072";
|
||||
Color3 = "#E7C664";
|
||||
Color4 = "#F39660";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/org.gnome.Prompt/palettes/myTheme.palette
|
||||
assertFileContent home-files/.config/org.gnome.Prompt/palettes/myTheme.palette \
|
||||
${pkgs.writeText "expected-ptyxis-theme" ''
|
||||
[Light]
|
||||
Background=#2C2E34
|
||||
Color0=#2C2E34
|
||||
Color1=#FC5D7C
|
||||
Color2=#9ED072
|
||||
Color3=#E7C664
|
||||
Color4=#F39660
|
||||
Foreground=#E2E2E3
|
||||
|
||||
[Palette]
|
||||
Name=My awesome theme
|
||||
''}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue