Difference between revisions of "Moc"

From ArchWiki
Jump to: navigation, search
(link to the French wiki)
m (Frontends: Use template.)
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{i18n|moc}}
+
[[Category:Audio/Video]]
[[fr:moc]]
+
[[de:Moc]]
[[Category:Audio/Video (English)]]
+
[[es:Moc]]
=Description=
+
[[fr:Moc]]
 
+
[[ro:Moc]]
 +
[[sr:Moc]]
 
'''M'''usic '''O'''n '''C'''onsole is a lightweight music player. It consists of 2 parts, a server (Moc) and the player/interface (Mocp).  
 
'''M'''usic '''O'''n '''C'''onsole is a lightweight music player. It consists of 2 parts, a server (Moc) and the player/interface (Mocp).  
 
This is similar to [[mpd]], but unlike mpd, Moc comes with an interface.
 
This is similar to [[mpd]], but unlike mpd, Moc comes with an interface.
  
=Installation=
+
==Installation==
  
 
Sync and install with pacman:
 
Sync and install with pacman:
 
  # pacman -S moc
 
  # pacman -S moc
  
=Configuration=
+
==Configuration==
The package includes a sample configuration file at {{Filename|/usr/share/doc/moc/config.example}}. To configure moc, copy this file to {{Filename|~/.moc/config}} and edit it.
+
The package includes a sample configuration file at {{ic|/usr/share/doc/moc/config.example}}. To configure moc, copy this file to {{ic|~/.moc/config}} and edit it.
  
For instructions about customising the keybindings, read {{Filename|/usr/share/doc/moc/keymap.example}}.
+
For instructions about customising the keybindings, read {{ic|/usr/share/doc/moc/keymap.example}}.
  
If you want to use Moc with OSS v4.1 go to that [http://wiki.archlinux.org/index.php/OSS article].
+
If you want to use Moc with [[OSS]] v4.1, see [[OSS#MOC]].
  
=Usage=
+
==Usage==
  
 
To start moc:
 
To start moc:
Line 73: Line 74:
 
| Change volume to 20%
 
| Change volume to 20%
 
| meta + 2
 
| meta + 2
|-
 
| etc, etc...
 
 
|-
 
|-
 
| Quit player
 
| Quit player
Line 80: Line 79:
 
|}
 
|}
  
NOTE: To shut down the server:
+
NOTE: To shut down the server, use the shift (capital) Q key or:
 
  $ mocp -x
 
  $ mocp -x
  
=MOC + last.fm=
+
==Unstable versions==
  
If you want scrobble songs to last.fm you need moc >=2.5.0. You can obtain it from AUR: [https://aur.archlinux.org/packages.php?ID=12793 here] or [https://aur.archlinux.org/packages.php?ID=15389 here].
+
You can obtain these from the AUR. MOC 2.4.0 (stable) was released in 2006. Features since then are in 2.5, but are not yet blessed “stable” as of writing.
  
First install lastfmsubmitd. It is a daemon which is available in the "community" repository.  To install it, first edit {{Filename|/etc/lastfmsubmitd.conf}} and add both {{Codeline|lastfmsubmitd}} and {{Codeline|lastmp}} to the {{Codeline|DAEMONS}} array in {{Filename|/etc/rc.conf}}.
+
* {{AUR|moc-svn}}
 +
* {{AUR|moc-devel}} (alpha version for next release)
 +
 
 +
==MOC + last.fm==
 +
 
 +
If you want scrobble songs to last.fm you need moc >= 2.5.0. See [[#Unstable versions]] above.
 +
 
 +
First install lastfmsubmitd. It is a daemon which is available in the "community" repository.  To install it, first edit {{ic|/etc/lastfmsubmitd.conf}} and add both {{Ic|lastfmsubmitd}} and {{Ic|lastmp}} to the {{Ic|DAEMONS}} array in {{ic|/etc/rc.conf}}.
  
 
Now configure moc:
 
Now configure moc:
Line 101: Line 107:
 
thats all.
 
thats all.
  
 +
==Frontends==
 +
* {{AUR|dmenu_mocp}} is a dmenu frontend for moc
 +
* {{Pkg|moc-tray}} is a perl gtk dock that gives you access to moc functions
  
=Frontends=
+
==Troubleshooting==
[http://aur.archlinux.org/packages.php?ID=39708 dmenu_mocp] is a dmenu frontend for moc
+
===moc fails to start===
 
+
If moc fails to start, it's most probably because of something wrong in {{ic|~/.moc/}}. You can try to fix it, or simply delete the folder {{ic|~/.moc/}}.
[http://aur.archlinux.org/packages.php?ID=24338 moc-tray] is a perl gtk dock that gives you access to moc functions
+

Revision as of 11:36, 5 January 2013

Music On Console is a lightweight music player. It consists of 2 parts, a server (Moc) and the player/interface (Mocp). This is similar to mpd, but unlike mpd, Moc comes with an interface.

Installation

Sync and install with pacman:

# pacman -S moc

Configuration

The package includes a sample configuration file at /usr/share/doc/moc/config.example. To configure moc, copy this file to ~/.moc/config and edit it.

For instructions about customising the keybindings, read /usr/share/doc/moc/keymap.example.

If you want to use Moc with OSS v4.1, see OSS#MOC.

Usage

To start moc:

$ mocp

This will start the server and interface. You will enter player interface. Some useful shortcuts to use mocp (case sensitive):

Start playing a track Enter
Pause track Space or p
Play next track n
Play previous track b
Switch from playlist browsing to filesystem browsing (and vice versa) tab
Add one track to the playlist a
Remove track from playlist d
Add a folder recursively to playlist A
Clear playlist C
Increase volume 5% . (dot)
Decrease volume 5% , (comma)
Increase volume 1% >
Decrease volume 1% <
Change volume to 10% meta + 1
Change volume to 20% meta + 2
Quit player q

NOTE: To shut down the server, use the shift (capital) Q key or:

$ mocp -x

Unstable versions

You can obtain these from the AUR. MOC 2.4.0 (stable) was released in 2006. Features since then are in 2.5, but are not yet blessed “stable” as of writing.

MOC + last.fm

If you want scrobble songs to last.fm you need moc >= 2.5.0. See #Unstable versions above.

First install lastfmsubmitd. It is a daemon which is available in the "community" repository. To install it, first edit /etc/lastfmsubmitd.conf and add both lastfmsubmitd and lastmp to the DAEMONS array in /etc/rc.conf.

Now configure moc:

$ vim ~/.moc/config

add line:

OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %b"

change permission:

$ sudo chmod -R 777 /var/spool/lastfm

thats all.

Frontends

  • dmenu_mocpAUR is a dmenu frontend for moc
  • moc-tray is a perl gtk dock that gives you access to moc functions

Troubleshooting

moc fails to start

If moc fails to start, it's most probably because of something wrong in ~/.moc/. You can try to fix it, or simply delete the folder ~/.moc/.