inori: init module (#6289)

This commit is contained in:
Miku B 2025-04-19 14:05:58 +00:00 committed by GitHub
parent ae84885d9b
commit 9676e8a52a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 179 additions and 0 deletions

View file

@ -0,0 +1,9 @@
{
config = {
programs.inori.enable = true;
nmt.script = ''
assertPathNotExists home-files/.config/inori/config.toml
'';
};
}

View file

@ -0,0 +1,4 @@
{
inori-default-config = ./default-config.nix;
inori-full-config = ./full-config.nix;
}

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

View 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"