my system configurations ^-^
at main 2.4 kB view raw
1{ 2 osConfig, 3 lib, 4 pkgs, 5 ... 6}: let 7 cfg = osConfig.settings.programs; 8in { 9 config = lib.mkIf (cfg.tui.enable 10 && cfg.categories.music.enable) { 11 programs.ncmpcpp = { 12 enable = true; 13 package = pkgs.ncmpcpp.override { 14 visualizerSupport = true; 15 clockSupport = true; 16 taglibSupport = true; 17 }; 18 bindings = [ 19 # navigation 20 { 21 key = "e"; 22 command = "scroll_down"; 23 } 24 { 25 key = "i"; 26 command = "scroll_up"; 27 } 28 { 29 key = "E"; 30 command = ["select_item" "scroll_down"]; 31 } 32 { 33 key = "I"; 34 command = ["select_item" "scroll_up"]; 35 } 36 # move items 37 { 38 key = "k"; 39 command = "move_sort_order_down"; 40 } 41 { 42 key = "k"; 43 command = "move_selected_items_down"; 44 } 45 { 46 key = "m"; 47 command = "move_sort_order_up"; 48 } 49 { 50 key = "m"; 51 command = "move_selected_items_up"; 52 } 53 ]; 54 settings = { 55 # visualiser 56 visualizer_data_source = "/tmp/mpd.fifo"; 57 visualizer_output_name = "mpd_visualizer"; 58 visualizer_type = "ellipse"; 59 visualizer_look = ""; 60 61 # current item 62 current_item_prefix = "$(magenta)$r"; # change accent color 63 64 # selected items 65 selected_item_prefix = "\"* \""; 66 discard_colors_if_item_is_selected = "yes"; 67 68 # now playing 69 now_playing_prefix = "\"$b$6 \""; 70 now_playing_suffix = "\"$/b\""; 71 centered_cursor = true; 72 autocenter_mode = "yes"; 73 74 # layout 75 user_interface = "alternative"; 76 startup_screen = "playlist"; 77 startup_slave_screen = "media_library"; 78 song_columns_list_format = "(10)[blue]{l} (45)[magenta]{t} (15)[white]{a} (30)[white]{b}"; 79 80 # display modes 81 playlist_display_mode = "columns"; 82 browser_display_mode = "columns"; 83 search_engine_display_mode = "columns"; 84 playlist_editor_display_mode = "columns"; 85 86 # colours 87 main_window_color = "white"; 88 89 # navigation 90 lines_scrolled = 1; # default is 5 91 92 # show album artist instead of artist by default 93 media_library_primary_tag = "album_artist"; 94 }; 95 }; 96 }; 97}