tray-tui: add module (#7415)
This commit is contained in:
parent
1edfb62244
commit
c00730550e
5 changed files with 93 additions and 0 deletions
12
tests/modules/programs/tray-tui/config.toml
Normal file
12
tests/modules/programs/tray-tui/config.toml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
columns = 3
|
||||
sorting = false
|
||||
|
||||
[key_map]
|
||||
down = "focus_down"
|
||||
h = "focus_left"
|
||||
j = "focus_up"
|
||||
k = "focus_down"
|
||||
l = "focus_right"
|
||||
left = "focus_left"
|
||||
right = "focus_right"
|
||||
up = "focus_up"
|
||||
1
tests/modules/programs/tray-tui/default.nix
Normal file
1
tests/modules/programs/tray-tui/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ tray-tui-example = ./example-config.nix; }
|
||||
25
tests/modules/programs/tray-tui/example-config.nix
Normal file
25
tests/modules/programs/tray-tui/example-config.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
programs.tray-tui = {
|
||||
enable = true;
|
||||
settings = {
|
||||
sorting = false;
|
||||
columns = 3;
|
||||
key_map = {
|
||||
left = "focus_left";
|
||||
h = "focus_left";
|
||||
right = "focus_right";
|
||||
l = "focus_right";
|
||||
up = "focus_up";
|
||||
j = "focus_up";
|
||||
down = "focus_down";
|
||||
k = "focus_down";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/tray-tui/config.toml
|
||||
assertFileContent home-files/.config/tray-tui/config.toml \
|
||||
${./config.toml}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue