All Projects → vimus → Vimus

vimus / Vimus

Licence: mit
An MPD client with vim-like key bindings, written in Haskell

Programming Languages

haskell
3896 projects

Labels

Projects that are alternatives of or similar to Vimus

Dotfiles
archlinux + i3wm + polybar + mpd(ncmpcpp)
Stars: ✭ 26 (-79.84%)
Mutual labels:  mpd
Hassio Addons
The repository for my Home Assistant Supervisor Add-ons.
Stars: ✭ 71 (-44.96%)
Mutual labels:  mpd
My dotfiles
Just a collections of my dotfiles...
Stars: ✭ 101 (-21.71%)
Mutual labels:  mpd
Slimpd
PHP/JS based MPD-web-client for large music collections
Stars: ✭ 37 (-71.32%)
Mutual labels:  mpd
Mpd Configure
Bash scripts to assist users of mpd to configure it as an audiophile bit perfect music player.
Stars: ✭ 57 (-55.81%)
Mutual labels:  mpd
Malp
M.A.L.P. - Android MPD client
Stars: ✭ 94 (-27.13%)
Mutual labels:  mpd
Smarthome
@skalavala 👍 Nothing But Smarthome Stuff! - By Mahasri Kalavala
Stars: ✭ 437 (+238.76%)
Mutual labels:  mpd
Rompr
Web client for Mopidy and MPD
Stars: ✭ 115 (-10.85%)
Mutual labels:  mpd
Rust Mpd
Rust version of libmpdclient
Stars: ✭ 66 (-48.84%)
Mutual labels:  mpd
Playerctl
🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
Stars: ✭ 1,365 (+958.14%)
Mutual labels:  mpd
Ntfd
A lightweight notification daemon for fancy desktop integrations
Stars: ✭ 44 (-65.89%)
Mutual labels:  mpd
Dotfiles
My dotfiles, managed with GNU stow
Stars: ✭ 56 (-56.59%)
Mutual labels:  mpd
Dotfiles
My dotfiles managed by GNU Stow - Arch, i3-gaps, bspwm, ncmpcpp, (neo)vim, zsh etc.
Stars: ✭ 99 (-23.26%)
Mutual labels:  mpd
Vv
Web App client for MPD(Music Player Daemon)
Stars: ✭ 33 (-74.42%)
Mutual labels:  mpd
Mpdas
MPD AudioScrobbler written in C++ using libcurl
Stars: ✭ 101 (-21.71%)
Mutual labels:  mpd
Hifiberry Os
Linux distribution optimized for audio playback
Stars: ✭ 487 (+277.52%)
Mutual labels:  mpd
Fmui
fzf mpd user interface
Stars: ✭ 93 (-27.91%)
Mutual labels:  mpd
Deezer Downloader
Download music from Deezer with a nice front end
Stars: ✭ 127 (-1.55%)
Mutual labels:  mpd
Dotfiles
If there is a shell, there is a way!
Stars: ✭ 112 (-13.18%)
Mutual labels:  mpd
Dots
A Repository For Config Files / Dotfiles / Themes / Color Schemes / Etc...
Stars: ✭ 100 (-22.48%)
Mutual labels:  mpd

vimus: An MPD client with vim-like key bindings

screenshot of vimus

Installing vimus

Get the latest version of GHC or the Haskell Platform and make sure that ~/.cabal/bin/ is on your PATH.

Install c2hs

cabal update && cabal install c2hs

Get the source

git clone https://github.com/vimus/vimus && cd vimus

Install and run vimus

cabal install && vimus

Building vimus requires a wide character capable ncurses installation, including headers. If the build fails, make sure that the ncurses headers are available and visible to Cabal, which may require you to install additional packages and/or specify additional include and library directories.

Debian

To build ncursesw on Debian (and derived distributions), do

apt-get install libncursesw5-dev
cabal install --extra-include-dirs=/usr/include/ncursesw
MacOS

On MacOS you need to install ncursesw with Homebrew

brew install ncursesw

Using vimus

Playing your first song

Read this when you have started vimus for the first time and are confused how it works.

vimus uses MPD as it's backend, so you have to set that up first. If you are done doing so,

  1. Start vimus. If this is the first time you fired up vimus, you see an almost empty screen. This is your current playlist, and there are no songs in it. In the first line of your terminal, you see the words Playlist, Library and Browser. These are the three main windows of vimus. You can access the main windows with the number keys 1, 2 and 3.

  2. Press the key 2. This is your complete music library. If this window is empty, it means that you need to check your MPD setup.

  3. Use the keys j and k to position the cursor on one of the songs and press Enter. The song starts playing.

  4. Press the key 1 to return to the playlist. The playlist now contains one entry, the song that you have just started. On the bottom of your terminal, you see the name of the currently playing song.

Managing the playlist

You can add songs and albums from your library to the playlist, and you can remove songs from the playlist.

These are the possibilities to add songs to your playlist:

  1. Go to the library window by pressing 2.

  2. Position your cursor on a song that you would like to hear. You have three possibilities:

  • press a to append the song under the cursor to the end of the playlist.
  • press i to insert the song to the playlist. It will be played as soon as the current song has finished.
  • press A to append all songs of the album of the selected song to the playlist.

To remove a song from the playlist,

  1. Go to the playlist window by pressing 1.

  2. Position the cursor on the song you want to remove from the playlist.

  3. Press the d key.

Searching your music library

  1. Go to the library window by pressing 2.

  2. Press F. The cursor jumps to the first song, and you are prompted to enter a filter term.

  3. Enter a word to filter your library, for example the name of an artist that you have music from. Note how vimus filters your music library as you type.

  4. Press Enter. A new window named SearchResult has opened, as you can see in the first line of your terminal. In this window, you can use the same keybindings as in the Library window to add songs or albums to your playlist.

  5. Press F again in the SearchResult window to enter a new search term and further narrow down the current search.

  6. Once you are done with this search, press q to close the window.

If you want to return to this window, use the number 4 key.

Using the browser window

In the Browser window, you can navigate your music library based on the directory structure which it has on your hard drive, as opposed to the Library window, which relies on the music metadata.

  1. Press 3 to go to the browser window. In this window, directories are displayed in brackets [], and songs are displayed without brackets.

  2. Position your cursor on a directory and press l (the letter ELL) to go down into that directory.

  3. Use h to go up one directory level.

  4. Use a and i when the cursor is positioned on a song to add it to the playlist.

  5. Use a when the cursor is positioned on a directory to recursively add all songs in this directory.

Command reference

To see a list of all available commands start vimus and type :help followed by Enter.

This shows a list of all commands available in vimus, together with a short description of what they do, and their default keybindings. For example the command :window-library is bound to the key 2. This means that pressing the key 2 or entering the command :window-library do the same thing.

You can define your own keybindings in the vimus configuration file. This is described in chapter "Adding custom keybindings".

A keybinding of the form <C-X> means you have to press the Control key and the x key at the same time. <CR> is the Enter key.

Customizing vimus

The file $HOME/.vimusrc is sourced on startup. Lines starting with # are comments.

Using colors

You can use the :color command to customize colors. For a light-on-dark color scheme put the following into your .vimusrc.

# a light-on-dark color scheme
color tab green black
color main cyan black
color ruler green black
color songstatus blue black
color playstatus blue black
color error white red
color input white black
color suggestions green black

Using custom song formatting

You can use the :song-format command to customize song formatting. Song formats consist of metaqueries:

  • %artist%
  • %album%
  • %title%
  • %track%
  • %genre%
  • %year%
  • %composer%
  • %performer%
  • %comment%
  • %disc%
  • %length%
  • %filename%
  • %directory%

and groupings, which can be nested:

(%title%|%directory%/%filename%)

where ( and ) denote grouping borders and | separates alternatives.

The value of a grouping is the first alternative where all metaqueries have succeded. A grouping without any metaqueries always succeeds.

The default format is:

%artist% - %album% - %track% - %title%

Note: if a toplevel metaquery fails (i.e. not inside a grouping), it's replaced with a none string.

Adding custom keybindings

You can add keybindings with the :map command, e.g.:

map q :quit<cr>

Have a look at the default keybindings.

Emacs keybindings

There are basic Emacs keybindings. To enable them, add the following to your .vimusrc.

runtime emacs-mappings

Connecting to MPD

By default, Vimus tries to connect to MPD using a host of localhost on port 6600.

If you would like to use a different host or port, you can specify this in two ways:

  • vimus first checks the -h HOST or --host=HOST command-line options for the host, and the -P PORT or --port=PORT command-line option for the port. To use a password, provide a value of the form [email protected] as the host.
  • If the host is not provided as a command-line option, vimus falls back to the environment variables MPD_HOST. Similarly, if the port is not provided as a command-line option, it falls back to the environment variable MPD_PORT.
  • If neither of these is given, vimus uses the default host of localhost and the default port at 6600.

It is not currently possible to specify the host or port in your .vimusrc.

Recipes

Using an external tag editor

:! can be used to invoke external programs, % is expanded to the current path (you need to set the base path to your library for % to work).

set-library-path /path/to/music/directory

# invoke kid3-qt with current song on 'T'
map T :!kid3-qt %<cr>

Getting help

/join #vimus on freenode!

Development

Running the test suite

$ ./ghci test/Spec.hs
*Main> :main

(hack, hack, hack)

*Main> :reload
*Main> :main

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].