]> Freerunner's - dotfiles.git/commitdiff
ncmpcpp: add dual-panes
authorAndre Ramnitz <tux.rising@gmail.com>
Thu, 4 Jan 2024 13:54:55 +0000 (14:54 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
config/ncmpcpp/config

index 96222608b7395339f24aac842975469380ce7806..423fb17353b6a285cc5c5016b76a7acb03dec265 100644 (file)
@@ -1,8 +1,77 @@
+##### song format #####
+##
+## For a song format you can use:
+##
+## %l - length
+## %f - filename
+## %D - directory
+## %a - artist
+## %A - album artist
+## %t - title
+## %b - album
+## %y - date
+## %n - track number (01/12 -> 01)
+## %N - full track info (01/12 -> 01/12)
+## %g - genre
+## %c - composer
+## %p - performer
+## %d - disc
+## %C - comment
+## %P - priority
+## $R - begin right alignment
+##
+## If you want to make sure that a part of the format is displayed
+## only when certain tags are present, you can archieve it by
+## grouping them with brackets, e.g. '{%a - %t}' will be evaluated
+## to 'ARTIST - TITLE' if both tags are present or '' otherwise.
+## It is also possible to define a list of alternatives by providing
+## several groups and separating them with '|', e.g. '{%t}|{%f}'
+## will be evaluated to 'TITLE' or 'FILENAME' if the former is not
+## present.
+#
+## Note: If you want to set limit on maximal length of a tag, just
+## put the appropriate number between % and character that defines
+## tag type, e.g. to make album take max. 20 terminal cells, use '%20b'.
+##
+## In addition, formats support markers used for text attributes.
+## They are followed by character '$'. After that you can put:
+##
+## - 0 - default window color (discards all other colors)
+## - 1 - black
+## - 2 - red
+## - 3 - green
+## - 4 - yellow
+## - 5 - blue
+## - 6 - magenta
+## - 7 - cyan
+## - 8 - white
+## - 9 - end of current color
+## - b - bold text
+## - u - underline text
+## - r - reverse colors
+## - a - use alternative character set
+##
+## If you don't want to use a non-color attribute anymore, just put it
+## again, but this time insert character '/' between '$' and attribute
+## character, e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag
+## or filename with reversed colors.
+##
+## If you want to use 256 colors and/or background colors in formats
+## (the naming scheme is described below in section about color
+## definitions), it can be done with the syntax $(COLOR), e.g. to set
+## the artist tag to one of the non-standard colors and make it have
+## yellow background, you need to write $(197_yellow)%a$(end). Note
+## that for standard colors this is interchangable with attributes
+## listed above.
+##
+## Note: colors can be nested.
+
+
 visualizer_output_name = mpdFIFO
 visualizer_fps = 60
 visualizer_in_stereo = yes
-visualizer_spectrum_hz_min = 28
-visualizer_spectrum_hz_max = 18000
+#visualizer_spectrum_hz_min = 28
+#visualizer_spectrum_hz_max = 18000
 visualizer_spectrum_smooth_look = yes
 visualizer_spectrum_gain = 1.5
 
@@ -16,6 +85,14 @@ display_bitrate = yes
 display_remaining_time = yes
 use_console_editor = yes
 
+ask_for_locked_screen_width_part =     no
+locked_screen_width_part = 60
+startup_screen = media_library 
+startup_slave_screen = playlist
+startup_slave_screen_focus = no
+
 execute_on_song_change = $HOME/.local/bin/songinfo
+enable_window_title = yes
+song_window_title_format = NCMPCPP: ♪ {%a - }{%t}{ (%b)}|{%f}
 
 media_library_primary_tag = album_artist