summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorself <self@sateoki.xyz>2022-03-18 22:51:12 +0000
committerself <self@sateoki.xyz>2022-03-18 22:51:12 +0000
commitc8e976c386567b3a0b97cb096df3d030ea58edba (patch)
treee228281399ae95bed592a36f662b245f06b7a126
parent0a66fc7cb04308315977dd466c93c332a7a04366 (diff)
Some updates to ncmpcpp / mpd configs, trying to organise
-rwxr-xr-xmpd.conf8
-rwxr-xr-xncmpcpp-config195
2 files changed, 31 insertions, 172 deletions
diff --git a/mpd.conf b/mpd.conf
index efb4e0d..f4fd14a 100755
--- a/mpd.conf
+++ b/mpd.conf
@@ -226,6 +226,14 @@ audio_output {
# mixer_control "PCM" # optional
# mixer_index "0" # optional
}
+
+audio_output {
+ type "fifo"
+ name "Visualizer feed"
+ path "/tmp/mpd.fifo"
+ format "44100:16:2"
+}
+
#
# An example of an OSS output:
#
diff --git a/ncmpcpp-config b/ncmpcpp-config
index 9174d2c..789e961 100755
--- a/ncmpcpp-config
+++ b/ncmpcpp-config
@@ -1,90 +1,16 @@
-##############################################################
-## This is an example configuration file. Copy it to ##
-## $XDG_CONFIG_HOME/ncmpcpp/config or $HOME/.ncmpcpp/config ##
-## and set up your preferences. ##
-##############################################################
-#
-##### directories ######
-##
-## Directory for storing ncmpcpp related files. Changing it is useful if you
-## want to store everything somewhere else and provide command line setting for
-## alternative location to config file which defines that while launching
-## ncmpcpp.
-##
-#
+[mpd]
#ncmpcpp_directory = ~/.config/ncmpcpp
-#
-##
-## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
-## MPD clients (eg. ncmpc) also use that location.
-##
-#
lyrics_directory = ~/.config/ncmpcpp/lyrics
-#
-##### connection settings #####
-#
mpd_host = localhost
-#
mpd_port = 6600
-#
-#mpd_password = ""
-#
-#mpd_connection_timeout = 5
-#
-## Needed for tag editor and file operations to work.
-##
mpd_music_dir = /var/lib/mpd/music
-#
#mpd_crossfade_time = 5
-#
-# Exclude pattern for random song action
-# http://www.boost.org/doc/libs/1_46_1/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
-#random_exclude_pattern = "^(temp|midi_songs).*"
-#
-##### music visualizer #####
-##
-## In order to make music visualizer work with MPD you need to use the fifo
-## output. Its format parameter has to be set to 44100:16:1 for mono
-## visualization or 44100:16:2 for stereo visualization. As an example here is
-## the relevant section for mpd.conf:
-##
-## audio_output {
-## type "fifo"
-## name "Visualizer feed"
-## path "/tmp/mpd.fifo"
-## format "44100:16:2"
-## }
-##
-## If the visualization on occasion diverges from the audio output, please set
-## 'buffer_time' parameter of your audio output in mpd.conf to '100000' (100ms)
-## or less to prevent that from happening.
-##
-## Note: If you're using Mopidy, an address of a udpsink gstreamer's output is
-## also accepted. For example, the following section in mopidy.conf:
-##
-## [audio]
-## output = tee name=t ! queue ! autoaudiosink t.
-## ! queue ! audio/x-raw,rate=44100,channels=2,format=S16LE
-## ! udpsink host=localhost port=5555
-##
-## will make localhost:5555 available as a source of data for the stereo
-## visualizer.
-##
-#
-#visualizer_data_source = /tmp/mpd.fifo
-#
-##
-## Note: Below parameter is needed for ncmpcpp to determine which output
-## provides data for visualizer and reset it at the beginning of visualization
-## to synchronize with audio.
-##
-#
-#visualizer_output_name = Visualizer feed
-#
-##
-## If you set format to 44100:16:2, make it 'yes'.
-##
-#visualizer_in_stereo = yes
+
+
+[visualizer]
+visualizer_data_source = /tmp/mpd.fifo
+visualizer_output_name = Visualizer feed
+visualizer_in_stereo = yes
#
##
## Note: set below to >=10 only if you have synchronization issues with
@@ -102,7 +28,7 @@ mpd_music_dir = /var/lib/mpd/music
##
#visualizer_type = spectrum
#
-#visualizer_fps = 60
+# visualizer_fps = 60
#
#visualizer_autoscale = no
#
@@ -141,21 +67,8 @@ mpd_music_dir = /var/lib/mpd/music
#
#visualizer_spectrum_hz_max = 20000
#
-##### system encoding #####
-##
-## ncmpcpp should detect your charset encoding but if it failed to do so, you
-## can specify charset encoding you are using here.
-##
-## Note: You can see whether your ncmpcpp build supports charset detection by
-## checking output of `ncmpcpp --version`.
-##
-## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
-## if your encoding is different.
-##
-#
-#system_encoding = ""
-#
-##### delays #####
+
+[delays]
#
## Time of inactivity (in seconds) after playlist highlighting will be disabled
## (0 = always on).
@@ -315,71 +228,29 @@ mpd_music_dir = /var/lib/mpd/music
#
#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
#
-##### various settings #####
-#
-##
-## Note: Custom command that will be executed each time song changes. Useful for
-## notifications etc.
-##
-#execute_on_song_change = ""
-#
-##
-## Note: Custom command that will be executed each time player state
-## changes. The environment variable MPD_PLAYER_STATE is set to the current
-## state (either unknown, play, pause, or stop) for its duration.
-##
-#
+[various]
+#execute_on_song_change = "" # TODO: set for dwmblocks
#execute_on_player_state_change = ""
-#
#playlist_show_mpd_host = no
-#
#playlist_show_remaining_time = no
-#
#playlist_shorten_total_times = no
-#
#playlist_separate_albums = no
-#
-##
## Note: Possible display modes: classic, columns.
-##
-#playlist_display_mode = columns
-#
-#browser_display_mode = classic
-#
-#search_engine_display_mode = classic
-#
-#playlist_editor_display_mode = classic
-#
+playlist_display_mode = classic
+browser_display_mode = classic
+search_engine_display_mode = classic
+playlist_editor_display_mode = classic
#discard_colors_if_item_is_selected = yes
-#
#show_duplicate_tags = yes
-#
#incremental_seeking = yes
-#
#seek_time = 1
-#
#volume_change_step = 2
-#
-#autocenter_mode = no
-#
+autocenter_mode = no
#centered_cursor = no
-#
-##
-## Note: You can specify third character which will be used to build 'empty'
-## part of progressbar.
-##
#progressbar_look = =>
-#
-## Available values: database, playlist.
-##
#default_place_to_search_in = database
-#
-## Available values: classic, alternative.
-##
-#user_interface = classic
-#
+user_interface = alternative
#data_fetching_delay = yes
-#
## Available values: artist, album_artist, date, genre, composer, performer.
##
#media_library_primary_tag = artist
@@ -406,20 +277,13 @@ mpd_music_dir = /var/lib/mpd/music
#header_text_scrolling = yes
#
#cyclic_scrolling = no
-#
-# Removed genius as it always plays me up
lyrics_fetchers = azlyrics, musixmatch, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, internet
-#
-#follow_now_playing_lyrics = no
-#
+follow_now_playing_lyrics = yes
#fetch_lyrics_for_current_song_in_background = no
#
#store_lyrics_in_song_dir = no
-#
#generate_win32_compatible_filenames = yes
-#
#allow_for_physical_item_deletion = no
-#
##
## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
## language you set and if it fails, it will fall back to english. Otherwise it
@@ -431,7 +295,7 @@ lyrics_fetchers = azlyrics, musixmatch, sing365, metrolyrics, justsomelyrics, ja
#
#space_add_mode = add_remove
#
-#show_hidden_files_in_local_browser = no
+show_hidden_files_in_local_browser = yes
#
##
## How shall screen switcher work?
@@ -495,23 +359,10 @@ lyrics_fetchers = azlyrics, musixmatch, sing365, metrolyrics, justsomelyrics, ja
## Available values: none, basic, extended, perl.
##
#regular_expressions = perl
-#
-##
-## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
-## sorting items in browser, tags in media library, etc.
-##
-#ignore_leading_the = no
-#
-##
-## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
-## filtering lists. This takes an effect only if boost was compiled with ICU
-## support.
-##
-#ignore_diacritics = no
-#
+ignore_leading_the = yes
+ignore_diacritics = no
#block_search_constraints_change_if_items_found = yes
-#
-#mouse_support = yes
+mouse_support = no
#
#mouse_list_scroll_whole_page = no
#