added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
20
nyx/homes/notashelf/programs/media/ncmpcpp/binds.nix
Normal file
20
nyx/homes/notashelf/programs/media/ncmpcpp/binds.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
programs.ncmpcpp.bindings = [
|
||||
{
|
||||
key = "j";
|
||||
command = "scroll_down";
|
||||
}
|
||||
{
|
||||
key = "k";
|
||||
command = "scroll_up";
|
||||
}
|
||||
{
|
||||
key = "J";
|
||||
command = ["select_item" "scroll_down"];
|
||||
}
|
||||
{
|
||||
key = "K";
|
||||
command = ["select_item" "scroll_up"];
|
||||
}
|
||||
];
|
||||
}
|
28
nyx/homes/notashelf/programs/media/ncmpcpp/default.nix
Normal file
28
nyx/homes/notashelf/programs/media/ncmpcpp/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
osConfig,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
env = modules.usrEnv;
|
||||
prg = env.programs;
|
||||
in {
|
||||
imports = [./binds.nix ./settings.nix];
|
||||
|
||||
config.programs.ncmpcpp = mkIf prg.media.ncmpcpp.enable {
|
||||
enable = true;
|
||||
|
||||
# provide visualisier support for ncmpcpp
|
||||
# it will optionally display a visualiser in the terminal
|
||||
# if the mpd server is configured to write the visualiser
|
||||
# mipe - e.g. /tmp/mpd.fifo
|
||||
package = pkgs.ncmpcpp.override {visualizerSupport = true;};
|
||||
|
||||
# look for music tracks inside mpd's music directory
|
||||
mpdMusicDir = config.services.mpd.musicDirectory;
|
||||
};
|
||||
}
|
61
nyx/homes/notashelf/programs/media/ncmpcpp/settings.nix
Normal file
61
nyx/homes/notashelf/programs/media/ncmpcpp/settings.nix
Normal file
|
@ -0,0 +1,61 @@
|
|||
{config, ...}: {
|
||||
programs.ncmpcpp.settings = {
|
||||
# Miscelaneous
|
||||
ncmpcpp_directory = "${config.xdg.configHome}/ncmpcpp";
|
||||
ignore_leading_the = true;
|
||||
external_editor = "nvim";
|
||||
message_delay_time = 1;
|
||||
playlist_disable_highlight_delay = 2;
|
||||
autocenter_mode = "yes";
|
||||
centered_cursor = "yes";
|
||||
allow_for_physical_item_deletion = "no";
|
||||
lines_scrolled = "0";
|
||||
follow_now_playing_lyrics = "yes";
|
||||
lyrics_fetchers = "musixmatch";
|
||||
|
||||
# visualizer
|
||||
visualizer_data_source = "/tmp/mpd.fifo";
|
||||
visualizer_output_name = "mpd_visualizer";
|
||||
visualizer_type = "ellipse";
|
||||
visualizer_look = "●● ";
|
||||
visualizer_color = "blue, green";
|
||||
|
||||
# appearance
|
||||
colors_enabled = "yes";
|
||||
playlist_display_mode = "classic";
|
||||
user_interface = "classic";
|
||||
volume_color = "white";
|
||||
|
||||
# window
|
||||
song_window_title_format = "Music";
|
||||
statusbar_visibility = "no";
|
||||
header_visibility = "no";
|
||||
titles_visibility = "no";
|
||||
# progress bar
|
||||
progressbar_look = "";
|
||||
progressbar_color = "black";
|
||||
progressbar_elapsed_color = "blue";
|
||||
|
||||
# song list
|
||||
song_status_format = "$7%t";
|
||||
song_list_format = "$(008)%t$R $(247)%a$R$5 %l$8";
|
||||
song_columns_list_format = "(53)[blue]{tr} (45)[blue]{a}";
|
||||
|
||||
current_item_prefix = "$b$2| ";
|
||||
current_item_suffix = "$/b$5";
|
||||
|
||||
now_playing_prefix = "$b$5| ";
|
||||
now_playing_suffix = "$/b$5";
|
||||
|
||||
song_library_format = "{{%a - %t} (%b)}|{%f}";
|
||||
|
||||
# colors
|
||||
main_window_color = "blue";
|
||||
|
||||
current_item_inactive_column_prefix = "$b$5";
|
||||
current_item_inactive_column_suffix = "$/b$5";
|
||||
|
||||
color1 = "white";
|
||||
color2 = "blue";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue