inori: init module (#6289)
This commit is contained in:
parent
ae84885d9b
commit
9676e8a52a
9 changed files with 179 additions and 0 deletions
9
tests/modules/programs/inori/default-config.nix
Normal file
9
tests/modules/programs/inori/default-config.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
config = {
|
||||
programs.inori.enable = true;
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/inori/config.toml
|
||||
'';
|
||||
};
|
||||
}
|
||||
4
tests/modules/programs/inori/default.nix
Normal file
4
tests/modules/programs/inori/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
inori-default-config = ./default-config.nix;
|
||||
inori-full-config = ./full-config.nix;
|
||||
}
|
||||
59
tests/modules/programs/inori/full-config.nix
Normal file
59
tests/modules/programs/inori/full-config.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
config = {
|
||||
programs.inori = {
|
||||
enable = true;
|
||||
settings = {
|
||||
seek_seconds = 10;
|
||||
dvorak_keybindings = true;
|
||||
keybindings = {
|
||||
toggle_playpause = [
|
||||
"p"
|
||||
"<space>"
|
||||
];
|
||||
next_song = [
|
||||
">"
|
||||
"C-n"
|
||||
];
|
||||
previous_song = [
|
||||
"<"
|
||||
"C-p"
|
||||
];
|
||||
seek = "<right>";
|
||||
seek_backwards = "<left>";
|
||||
|
||||
up = "k";
|
||||
down = "j";
|
||||
left = "h";
|
||||
right = "l";
|
||||
top = [
|
||||
"g g"
|
||||
"<home>"
|
||||
];
|
||||
bottom = [
|
||||
"G"
|
||||
"<end>"
|
||||
];
|
||||
quit = [
|
||||
"<escape>"
|
||||
"q"
|
||||
];
|
||||
};
|
||||
theme = {
|
||||
status_artist.fg = "#fab387";
|
||||
status_album.fg = "#89b4fa";
|
||||
status_title = {
|
||||
fg = "#cba6f7";
|
||||
add_modifier = "BOLD";
|
||||
};
|
||||
album.fg = "#89b4fa";
|
||||
playing.fg = "#a6e3a1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/inori/config.toml
|
||||
assertFileContent home-files/.config/inori/config.toml ${./full-config.toml}
|
||||
'';
|
||||
};
|
||||
}
|
||||
32
tests/modules/programs/inori/full-config.toml
Normal file
32
tests/modules/programs/inori/full-config.toml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
dvorak_keybindings = true
|
||||
seek_seconds = 10
|
||||
|
||||
[keybindings]
|
||||
bottom = ["G", "<end>"]
|
||||
down = "j"
|
||||
left = "h"
|
||||
next_song = [">", "C-n"]
|
||||
previous_song = ["<", "C-p"]
|
||||
quit = ["<escape>", "q"]
|
||||
right = "l"
|
||||
seek = "<right>"
|
||||
seek_backwards = "<left>"
|
||||
toggle_playpause = ["p", "<space>"]
|
||||
top = ["g g", "<home>"]
|
||||
up = "k"
|
||||
|
||||
[theme.album]
|
||||
fg = "#89b4fa"
|
||||
|
||||
[theme.playing]
|
||||
fg = "#a6e3a1"
|
||||
|
||||
[theme.status_album]
|
||||
fg = "#89b4fa"
|
||||
|
||||
[theme.status_artist]
|
||||
fg = "#fab387"
|
||||
|
||||
[theme.status_title]
|
||||
add_modifier = "BOLD"
|
||||
fg = "#cba6f7"
|
||||
Loading…
Add table
Add a link
Reference in a new issue