dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c875aa5477b770250a12a4fd4964e1f36b309c24
parent 7f3294ca9c53fb88238c5d5d6297d0e7e6ccd71d
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu, 17 Dec 2020 23:28:07 +0100

Music setup: ncmpcpp + mpd

Diffstat:
M.gitignore | 3+++
Mdot.map | 2++
Ampd/mpd.conf | 41+++++++++++++++++++++++++++++++++++++++++
Ancmpcpp/bindings | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ancmpcpp/config | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 176 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -23,6 +23,9 @@ w3m/* gnupg/* !gnupg/gpg.conf +# ncmpcpp +ncmpcpp/error.log + # Misc *.pyc vim/autoload/plug.vim* diff --git a/dot.map b/dot.map @@ -46,6 +46,8 @@ mutt: ~/.config/mutt mbsync: ~/.config/mbsync urlview/urlview: ~/.urlview gnupg: ~/.config/gnupg +mpd: ~/.config/mpd +ncmpcpp: ~/.config/ncmpcpp # Config: X server (Linux) xinitrc: ~/.xinitrc diff --git a/mpd/mpd.conf b/mpd/mpd.conf @@ -0,0 +1,41 @@ +music_directory "~/Music/iTunes/iTunes Media/Music" +# music_directory "~/mymusic" +playlist_directory "~/.config/mpd/playlists" +db_file "~/.local/share/mpd/mpd.db" +log_file "~/.local/share/mpd/mpd.log" +pid_file "~/.local/share/mpd/mpd.pid" +state_file "~/.cache/mpd/mpdstate" +follow_outside_symlinks "yes" +follow_inside_symlinks "yes" + +audio_output { + type "osx" + name "CoreAudio" + mixer_type "software" +} + +decoder { + plugin "mp4ff" + enabled "no" +} + +bind_to_address "127.0.0.1" +port "6600" +user "alex" + +# Visualizer +audio_output { + type "fifo" + name "my_fifo" + path "/tmp/mpd.fifo" + format "44100:16:2" + auto_resample "no" + use_mmap "yes" +} + +# refresh the database when files in music_directory change +auto_update "yes" +auto_update_depth "2" + +# don't start playback after startup +restore_paused "yes" diff --git a/ncmpcpp/bindings b/ncmpcpp/bindings @@ -0,0 +1,79 @@ +def_key "+" + show_clock +def_key "=" + volume_up +def_key "-" + volume_down + +def_key "j" + scroll_down +def_key "k" + scroll_up + +def_key "ctrl-u" + page_up +def_key "ctrl-d" + page_down + +def_key "h" + previous_column +def_key "l" + next_column + +def_key "." + show_lyrics + +def_key "n" + next_found_item +def_key "N" + previous_found_item + +def_key "J" + move_sort_order_down +def_key "K" + move_sort_order_up + +def_key "h" + jump_to_parent_directory + +def_key "l" + enter_directory +def_key "l" + run_action +def_key "l" + play_item +def_key "m" + show_media_library +def_key "m" + toggle_media_library_columns_mode +def_key "t" + show_tag_editor +def_key "v" + show_visualizer +def_key "G" + move_end +def_key "g" + move_home +def_key "U" + update_database +def_key "s" + reset_search_engine +def_key "s" + show_search_engine +def_key "F" + show_browser +def_key "f" + seek_forward +def_key "f" + change_browse_mode +def_key "x" + delete_playlist_items +def_key "P" + show_playlist + +def_key "?" + show_help + +def_key "*" + select_item + diff --git a/ncmpcpp/config b/ncmpcpp/config @@ -0,0 +1,51 @@ +# vim: filetype=conf + +ncmpcpp_directory = "~/.config/ncmpcpp" +lyrics_directory = "~/.local/share/lyrics" +mpd_music_dir = "~/Music/iTunes/iTunes Media/Music" +system_encoding = "utf-8" + +mpd_host = "localhost" +mpd_port = "6600" +mpd_connection_timeout = "5" +message_delay_time = "1" + +visualizer_fifo_path = "/tmp/mpd.fifo" +visualizer_output_name = "my_fifo" +visualizer_sync_interval = "12" +visualizer_type = "spectrum" + +song_list_format = {$4%a - }{%t}|{$8%f$9}$R{$3(%l)$9} +song_status_format = $b{{$8"%t"}} $3by {$4%a{ $3in $7%b{ (%y)}} $3}|{$8%f} +song_library_format = {%n - }{%t}|{%f} +alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b +alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D} +current_item_prefix = $(cyan)$r$b +current_item_suffix = $/r$(end)$/b +current_item_inactive_column_prefix = $(magenta)$r +current_item_inactive_column_suffix = $/r$(end) + +playlist_display_mode = columns +playlist_editor_display_mode = columns +browser_display_mode = columns +search_engine_display_mode = columns + +progressbar_look = -> +now_playing_prefix = "> " +modified_item_prefix = "~ " +media_library_primary_tag = artist +media_library_albums_split_by_date = no +startup_screen = "media_library" +display_volume_level = yes +ignore_leading_the = yes +external_editor = vim +selected_item_prefix = "* " +use_console_editor = yes +empty_tag_color = magenta +main_window_color = white +progressbar_color = black:b +progressbar_elapsed_color = blue:b +statusbar_color = red +statusbar_time_color = cyan:b +colors_enabled = "yes" +user_interface = "alternative"