Elric's random thoughts in idle times

"Why stop now, when I'm just starting to hate it?" – Marvin the robot

Posts Tagged ‘mpd

Ncmpcpp config example

leave a comment »

Configuring ncmpcpp can be pretty hard, and I benefited from people who posted their config file. I’m just posting my current configuration, omitting the default configuration values present in the config file, which are commented. Here, you’ll only see what is different from the default config, as the config file is HUGE. I also deleted most comments, so you’ll need to open ncmpcpp’s example config file to see the comments and understand what’s going on.

The colors are simple (I use few), and look a bit like aptitude’s or my mutt’s color layout.

###############################################
## Omar config ##
####################################################
#
##### connection settings #####
#
## set it in order to make tag editor and renaming files work properly
#
mpd_host = "localhost"
#
mpd_port = "6600"
#
mpd_music_dir = "~/Music/"

# I had to set this to avoid a bug which slows down viewing artist's list
mpd_communication_mode = "polling" (polling/notifications)

##### music visualizer #####
##
## Note: In order to make music visualizer work you'll
## need to use mpd fifo output, whose format parameter
## has to be set to 44100:16:1. Example configuration:
## (it has to be put into mpd.conf)
## This is the simplest way to configure it. ncmpcpp has to
## be compiled with support for it.
visualizer_fifo_path = "/tmp/mpd.fifo"

## Note: To enable spectrum frequency visualization
## you need to compile ncmpcpp with fftw3 support.
##
#
visualizer_type = "spectrum" (spectrum/wave)

##### song format #####

song_list_format = "{%a - }{%t}|{$8%f$9}$R{$8(%l)$9}"

song_library_format = "{$4%n - }{%t}|{%f$9}"

media_library_album_format = "{%b}|$D"

## Note: Below variables are for alternative version of user's interface.
## Their syntax supports all tags and colors listed above plus some extra
## markers used for text attributes. They are followed by character '$'.
## After that you can put:

alternative_header_first_line_format = "$b$8$aqqu$/a {%t}|{%f} $atqq$/a$9$/b"
#
alternative_header_second_line_format = "{{$5$b%a$/b}{ - $b%b}{ (%y)}}|{%D$9}"

## Note: Below variables also supports
## text attributes listed above.

now_playing_prefix = "$b"

now_playing_suffix = "$/b"

selected_item_prefix = "$b"

selected_item_suffix = "$/b"

##### columns settings #####

song_columns_list_format = "(25)[blue]{a} (25)[white]{b} (40)[white]{t} (5)[yellow]{l}"

##### various settings #####

playlist_display_mode = "columns" (classic/columns)

browser_display_mode = "columns" (classic/columns)

incremental_seeking = "yes"

user_interface = "alternative" (classic/alternative)

header_visibility = "yes"

statusbar_visibility = "yes"

header_text_scrolling = "yes"

## How shall key_screen_switcher work?

screen_switcher_mode = "sequence: 2 -> 5"

## Note: You can define startup screen for ncmpcpp
## by choosing screen number from the list above.
##
startup_screen = "5"

clock_display_seconds = "yes"

display_bitrate = "yes"

empty_tag_marker = "----"

enable_window_title = "yes"

##### lyrics support #####
##
## supported lyrics databases:
##
## - 1 - lyricsplugin.com
##
#
lyrics_database = "1"
#
external_editor = "vim"

##### colors definitions #####

colors_enabled = "yes"

empty_tag_color = "red"

header_window_color = "cyan"

volume_color = "yellow"

main_window_color = "white"

color1 = "blue"

color2 = "white"

main_window_highlight_color = "blue"

progressbar_color = "blue"

statusbar_color = "yellow"

alternative_ui_separator_color = "blue"

active_column_color = "white"

window_border_color = "green"

active_window_border = "white"

This is an image showing the current layout and colors with this configuration.

Enjoy!

Written by elric80

November 25, 2010 at 1:53 pm

Posted in linux, music

Tagged with , , ,

Gmpc 0.19 Review

leave a comment »

I’ve installed or built and tried almost every music player app (but for ncurses one :)
available in GNU/Linux systems. Dead projects, whatever fell into my hands. I like to have
a heavy full-featured application, particullary when I’m just listening to music and
searching for new stuff over the internet, I love to see reccommended last fm’s artists, wiki stuff, links, biography, etc….

Because of this I’ve always had Songbird or Banshee + a light app. Up to now.

After a long time, I grew tired of Songbird’s heaviness. I still keep an eye on it, and I love to see how new features are constantly added, it’s just too heavy on my laptop when I have several other apps running, and it’s database is pretty slow (compare with Rhythmbox or the interesting gmusicbrowser ). On the other hand, I’ve always used mpd and its various interfaces as my light alternative for music reproduction.

I had tried gmpc a couple of years ago, and while I wasn’t particullary fond of the
interface, I did like it as it contained several features that the other mpd players don’t offer. Anyway, I ditched it for X app.
However, I’ve been following it again since latest 0.18, and now 0.19, and I have to say I am impressed. The metadata browser is a much better alternative to the last fm’s information area in Songbird’s mashtape plugin, plus providing the reccommended artists list.

gmpc

It also offers integration with Jamendo and Magnatune,  file browsing (much like Ario or Sonata), album view (for us who liked MpdBrowser), and the awesome wikipedia look.

gmpc2

I really like the last one, as I find the browser in Songbird too bloated. It’s a great
idea, but I need less, or more from a web browser. I would like to see it becoming something like this, a browser oriented to music related  websites. Leaves you with little choice but to browse your music related stuff. Plus, it loads pages fast!

You may have noticed that the capabilities present in Gmpc are also available in other apps. What I love about it is that they are ALL present in gmpc and well implemented. Plus, the app is still light, not showing up in top when not focused or in use, and eating an approximate 10% cpu usage (mpd included) at the almost unseen half-second peaks. You can also run “easy commands” in gmpc to control it and edit your songs metadata, and as a final note, it fits perfectly in the Gnome desktop, no need to skin it (neither the chance).

Nowadays, Gmpc is my full-featured app AND my light app of choice. Give it a try if you’ve
never used mpd or gmpc, or install it again if you didn’t like it the first time. Sure you’ll keep it.

Gnome Music Player Client Homepage

Written by elric80

October 18, 2009 at 12:10 am

Posted in linux, music

Tagged with , , ,

Mpd on Debian with Vim

with one comment

Yes, I know Vim is much more than a music player, or that it surpasses by large any use I may give to it. I just love to use it for almost anything. And as a non-programmer, that anything means whatever but code editing. It’s still pretty enjoyable :)

Being the music lover I am, and the fact that I like to try any music app there is around, it was just a matter a time that I ended up using ANY interface to control my mpd local server. In search for a light one, what the fuck? Vim.

Read the rest of this entry »

Written by elric80

September 1, 2009 at 8:33 pm

Posted in debian, linux, music, vim

Tagged with , , , , ,