https://wiki.archlinux.org/api.php?action=feedcontributions&user=Padowi&feedformat=atomArchWiki - User contributions [en]2024-03-29T12:59:55ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Ncmpcpp&diff=149077Ncmpcpp2011-07-15T14:42:23Z<p>Padowi: Added very basic configuration guide</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{Article summary start}}<br />
{{Article summary text|Covers installation and usage of ncmpcpp (ncmpc++)}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|mpd}} - Music Player Daemon<br />
{{Article summary end}}<br />
<br />
==Introduction==<br />
[http://unkart.ovh.org/ncmpcpp/ Ncmpcpp] or ncmpc++ is an [[mpd]] client with a UI very similar to ncmpc, but it provides new useful features such as support for regular expressions in search engine, extended song format, items filtering, last.fm support, ability to sort playlist, local filesystem browser and other minor functions. To use it, a functional [[mpd]] must be present on the system since ncmpcpp/mpd work together in a client/server relationship.<br />
<br />
The shell "GUI" for ncmpcpp is highly customizable. Edit {{Filename|~/.ncmpcpp/config}} to your liking. For inspiration, see the following resources:<br />
<br />
* [https://bbs.archlinux.org/viewtopic.php?id=66488 Show your .ncmpcpp/config with Screenshot forum thread]<br />
* [http://unkart.ovh.org/ncmpcpp/screenshots.php Project screenshots page]<br />
<br />
==Installation==<br />
The official package resides in [community]<br />
# pacman -S ncmpcpp<br />
<br />
==(Very) Basic configuration==<br />
After installation a sample configuration file can be found in /usr/share/doc/ncmpcpp/config<br />
If, after installation, ~/.ncmpcpp/config has not been created, you could copy the sample config and edit at the very least the following three configuration options:<br />
<br />
* mpd_host (should point to the host on which mpd resides, can be "localhost" or "127.0.0.1" if on the same machine)<br />
* mpd_port (unless you've changed the defaults of mpd, this should be "6600")<br />
* mpd_music_dir (the same directory value as specified in "music_directory" in mpd.conf)<br />
<br />
==Enabling visualization==<br />
For visualization, one needs the {{Package AUR|ncmpcpp-fftw}} package from the [[AUR]]. Once built, add a few lines to {{Filename|/etc/mpd.conf}} to enable the generation of the [[Wikipedia:Fast Fourier transform|fast Fourier transform]] data for the visualization:<br />
<br />
<pre><br />
audio_output {<br />
type "fifo"<br />
name "my_fifo"<br />
path "/tmp/mpd.fifo"<br />
}<br />
</pre><br />
<br />
Additional lines need to be added to {{Filename|~/.ncmpcpp/config}}<br />
<br />
<pre><br />
visualizer_fifo_path = "/tmp/mpd.fifo"<br />
visualizer_output_name = "my_fifo"<br />
visualizer_sync_interval = "1"<br />
#visualizer_type = "wave" (spectrum/wave)<br />
visualizer_type = "spectrum" (spectrum/wave)<br />
</pre><br />
<br />
Users can chose between either a spectrum analyzer or wave form.<br />
<br />
==Basic Usage==<br />
===Loading ncmpc++===<br />
Load ncmpc++ in a shell <br />
$ ncmpcpp<br />
===Remapping keys===<br />
A listing of keys and their respective functions is available from within npmpcpp itself via hitting {{Keypress|1}}. Users may remap any of the default keys simply by copying {{Filename|/usr/share/doc/ncmpcpp/keys}} ~/.ncmpcpp and editing it.<br />
<br />
===Different views===<br />
Partial list of views within ncmpc++<br />
*{{Keypress|0}} - Clock<br />
*{{Keypress|1}} - Help<br />
*{{Keypress|2}} - Current playlist<br />
*{{Keypress|3}} - Filesystem browser<br />
*{{Keypress|4}} - DB search<br />
*{{Keypress|5}} - Library<br />
*{{Keypress|6}} - Playlist editor<br />
*{{Keypress|7}} - Tag editor (very powerful!)<br />
*{{Keypress|9}} - Music visualizer<br />
<br />
===Other UI keys===<br />
*{{Keypress|\}} - Switch between classic and alternative views<br />
*{{Keypress|#}} - Display bitrate of file<br />
*{{Keypress|i}} - Show song info<br />
*{{Keypress|I}} - Show artist info (saved in {{Filename|~/.ncmpvpp/artists/ARTIST.txt}})<br />
*{{Keypress|L}} - Shuffle between available lyric databases<br />
*{{Keypress|l}} - Retrieve song lyrics for current song Show/hide lyrics<br />
<br />
{{Note|As mentioned above, the visualizer is not enabled in the ncmpcpp package in the repo. Users will need to build the fftw version from the AUR.}}<br />
<br />
===Playback modes===<br />
<br />
Noticed the control panel in the upper right; shown in alternative mode:<br />
<br />
1:40/4:16 1082 kbps ──┤ Criminal ├── Vol: 98%<br />
[playing] Disturbed - Indestructible (2008) '''[-z-c--]'''<br />
<br />
And again in classic mode:<br />
─────────────────────────────────────────────────────────────────────────────────────────────────────────'''[zc]'''─<br />
<br />
This corresponds to the playback modes; ordered from left to right, they are:<br />
<br />
*{{Keypress|r}} - repeat mode '''[r-----]'''<br />
*{{Keypress|z}} - random mode '''[-z----]'''<br />
*{{Keypress|y}} - single mode '''[--s---]'''<br />
*{{Keypress|R}} - consume mode '''[---c--]'''<br />
*{{Keypress|x}} - crossfade mode '''[----x-]'''<br />
<br />
The final "-" is only active when the user forces an update to the datebase via {{Keypress|u}}.</div>Padowi