https://wiki.archlinux.org/api.php?action=feedcontributions&user=Frojnd&feedformat=atomArchWiki - User contributions [en]2024-03-29T11:17:14ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=MOC&diff=248175MOC2013-02-22T21:33:06Z<p>Frojnd: /* MOC + last.fm */</p>
<hr />
<div>[[Category:Audio/Video]]<br />
[[de:Moc]]<br />
[[es:Moc]]<br />
[[fr:Moc]]<br />
[[ro:Moc]]<br />
[[sr:Moc]]<br />
'''M'''usic '''O'''n '''C'''onsole is a lightweight music player. It consists of 2 parts, a server (Moc) and the player/interface (Mocp). <br />
This is similar to [[mpd]], but unlike mpd, Moc comes with an interface.<br />
<br />
==Installation==<br />
<br />
Sync and install with pacman:<br />
# pacman -S moc<br />
<br />
==Configuration==<br />
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.<br />
<br />
For instructions about customising the keybindings, read {{ic|/usr/share/doc/moc/keymap.example}}.<br />
<br />
If you want to use Moc with [[OSS]] v4.1, see [[OSS#MOC]].<br />
<br />
==Usage==<br />
<br />
To start moc:<br />
<br />
$ mocp<br />
<br />
This will start the server and interface. You will enter player interface. Some useful shortcuts to use mocp (case sensitive):<br />
<br />
{| class="wikitable"<br />
|-<br />
| Start playing a track<br />
| Enter<br />
|-<br />
| Pause track <br />
| Space or p<br />
|- <br />
| Play next track<br />
| n<br />
|-<br />
| Play previous track<br />
| b<br />
|-<br />
| Switch from playlist browsing to filesystem browsing (and vice versa)<br />
| tab<br />
|-<br />
| Add one track to the playlist<br />
| a<br />
|-<br />
| Remove track from playlist<br />
| d<br />
|-<br />
| Add a folder recursively to playlist<br />
| A<br />
|-<br />
| Clear playlist<br />
| C<br />
|-<br />
| Increase volume 5%<br />
| . (dot)<br />
|-<br />
| Decrease volume 5%<br />
| , (comma)<br />
|-<br />
| Increase volume 1%<br />
| ><br />
|-<br />
| Decrease volume 1%<br />
| <<br />
|-<br />
| Change volume to 10%<br />
| meta + 1<br />
|-<br />
| Change volume to 20%<br />
| meta + 2<br />
|-<br />
| Quit player<br />
| q<br />
|}<br />
<br />
NOTE: To shut down the server, use the shift (capital) Q key or:<br />
$ mocp -x<br />
<br />
==Unstable versions==<br />
<br />
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.<br />
<br />
* {{AUR|moc-svn}}<br />
* {{AUR|moc-devel}} (alpha version for next release)<br />
<br />
==MOC + last.fm==<br />
<br />
If you want scrobble songs to last.fm you need moc >= 2.5.0. See [[#Unstable versions]] above.<br />
<br />
First install lastfmsubmitd. It is a daemon which is available in the "community" repository. To install it, first edit {{ic|/etc/lastfmsubmitd.conf}} and enable both services {{Ic|lastfmsubmitd}} and {{Ic|lastmp}} with {{Ic|systemctl}}.<br />
<br />
If services do not exists create them first:<br />
<br />
create {{Ic|/etc/systemd/system/lastmp.service}} file and add following in it:<br />
<br />
{{bc|[Unit]<br />
Description&#61;LastMP<br />
After&#61;mpd.service<br />
<br />
[Service]<br />
ExecStart&#61;/usr/bin/lastmp --no-daemon<br />
<br />
[Install]<br />
WantedBy&#61;multi-user.target}}<br />
<br />
<br />
create {{Ic|/etc/systemd/system/lastfmsubmitd.service}} file and add following in it:<br />
<br />
{{bc|[Unit]<br />
Description&#61;LastFM Submit daemon<br />
After&#61;network.target<br />
<br />
[Service]<br />
ExecStart&#61;/usr/bin/lastfmsubmitd --no-daemon<br />
<br />
[Install]<br />
WantedBy&#61;multi-user.target}}<br />
<br />
<br />
Now configure moc:<br />
<br />
$ vim ~/.moc/config<br />
add line:<br />
OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %b"<br />
<br />
change permission:<br />
<br />
$ sudo chmod -R 777 /var/spool/lastfm<br />
<br />
thats all.<br />
<br />
==Frontends==<br />
* {{AUR|dmenu_mocp}} is a dmenu frontend for moc<br />
* {{Pkg|moc-tray}} is a perl gtk dock that gives you access to moc functions<br />
<br />
==Troubleshooting==<br />
===moc fails to start===<br />
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/}}.</div>Frojndhttps://wiki.archlinux.org/index.php?title=MOC&diff=248174MOC2013-02-22T21:32:33Z<p>Frojnd: /* MOC + last.fm */</p>
<hr />
<div>[[Category:Audio/Video]]<br />
[[de:Moc]]<br />
[[es:Moc]]<br />
[[fr:Moc]]<br />
[[ro:Moc]]<br />
[[sr:Moc]]<br />
'''M'''usic '''O'''n '''C'''onsole is a lightweight music player. It consists of 2 parts, a server (Moc) and the player/interface (Mocp). <br />
This is similar to [[mpd]], but unlike mpd, Moc comes with an interface.<br />
<br />
==Installation==<br />
<br />
Sync and install with pacman:<br />
# pacman -S moc<br />
<br />
==Configuration==<br />
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.<br />
<br />
For instructions about customising the keybindings, read {{ic|/usr/share/doc/moc/keymap.example}}.<br />
<br />
If you want to use Moc with [[OSS]] v4.1, see [[OSS#MOC]].<br />
<br />
==Usage==<br />
<br />
To start moc:<br />
<br />
$ mocp<br />
<br />
This will start the server and interface. You will enter player interface. Some useful shortcuts to use mocp (case sensitive):<br />
<br />
{| class="wikitable"<br />
|-<br />
| Start playing a track<br />
| Enter<br />
|-<br />
| Pause track <br />
| Space or p<br />
|- <br />
| Play next track<br />
| n<br />
|-<br />
| Play previous track<br />
| b<br />
|-<br />
| Switch from playlist browsing to filesystem browsing (and vice versa)<br />
| tab<br />
|-<br />
| Add one track to the playlist<br />
| a<br />
|-<br />
| Remove track from playlist<br />
| d<br />
|-<br />
| Add a folder recursively to playlist<br />
| A<br />
|-<br />
| Clear playlist<br />
| C<br />
|-<br />
| Increase volume 5%<br />
| . (dot)<br />
|-<br />
| Decrease volume 5%<br />
| , (comma)<br />
|-<br />
| Increase volume 1%<br />
| ><br />
|-<br />
| Decrease volume 1%<br />
| <<br />
|-<br />
| Change volume to 10%<br />
| meta + 1<br />
|-<br />
| Change volume to 20%<br />
| meta + 2<br />
|-<br />
| Quit player<br />
| q<br />
|}<br />
<br />
NOTE: To shut down the server, use the shift (capital) Q key or:<br />
$ mocp -x<br />
<br />
==Unstable versions==<br />
<br />
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.<br />
<br />
* {{AUR|moc-svn}}<br />
* {{AUR|moc-devel}} (alpha version for next release)<br />
<br />
==MOC + last.fm==<br />
<br />
If you want scrobble songs to last.fm you need moc >= 2.5.0. See [[#Unstable versions]] above.<br />
<br />
First install lastfmsubmitd. It is a daemon which is available in the "community" repository. To install it, first edit {{ic|/etc/lastfmsubmitd.conf}} and enable both services {{Ic|lastfmsubmitd}} and {{Ic|lastmp}} with {{Ic|systemctl}}.<br />
<br />
If services does not exist create them first:<br />
<br />
create {{Ic|/etc/systemd/system/lastmp.service}} file and add following in it:<br />
<br />
{{bc|[Unit]<br />
Description&#61;LastMP<br />
After&#61;mpd.service<br />
<br />
[Service]<br />
ExecStart&#61;/usr/bin/lastmp --no-daemon<br />
<br />
[Install]<br />
WantedBy&#61;multi-user.target}}<br />
<br />
<br />
create {{Ic|/etc/systemd/system/lastfmsubmitd.service}} file and add following in it:<br />
<br />
{{bc|[Unit]<br />
Description&#61;LastFM Submit daemon<br />
After&#61;network.target<br />
<br />
[Service]<br />
ExecStart&#61;/usr/bin/lastfmsubmitd --no-daemon<br />
<br />
[Install]<br />
WantedBy&#61;multi-user.target}}<br />
<br />
<br />
Now configure moc:<br />
<br />
$ vim ~/.moc/config<br />
add line:<br />
OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %b"<br />
<br />
change permission:<br />
<br />
$ sudo chmod -R 777 /var/spool/lastfm<br />
<br />
thats all.<br />
<br />
==Frontends==<br />
* {{AUR|dmenu_mocp}} is a dmenu frontend for moc<br />
* {{Pkg|moc-tray}} is a perl gtk dock that gives you access to moc functions<br />
<br />
==Troubleshooting==<br />
===moc fails to start===<br />
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/}}.</div>Frojndhttps://wiki.archlinux.org/index.php?title=MOC&diff=248173MOC2013-02-22T21:30:35Z<p>Frojnd: /* MOC + last.fm */</p>
<hr />
<div>[[Category:Audio/Video]]<br />
[[de:Moc]]<br />
[[es:Moc]]<br />
[[fr:Moc]]<br />
[[ro:Moc]]<br />
[[sr:Moc]]<br />
'''M'''usic '''O'''n '''C'''onsole is a lightweight music player. It consists of 2 parts, a server (Moc) and the player/interface (Mocp). <br />
This is similar to [[mpd]], but unlike mpd, Moc comes with an interface.<br />
<br />
==Installation==<br />
<br />
Sync and install with pacman:<br />
# pacman -S moc<br />
<br />
==Configuration==<br />
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.<br />
<br />
For instructions about customising the keybindings, read {{ic|/usr/share/doc/moc/keymap.example}}.<br />
<br />
If you want to use Moc with [[OSS]] v4.1, see [[OSS#MOC]].<br />
<br />
==Usage==<br />
<br />
To start moc:<br />
<br />
$ mocp<br />
<br />
This will start the server and interface. You will enter player interface. Some useful shortcuts to use mocp (case sensitive):<br />
<br />
{| class="wikitable"<br />
|-<br />
| Start playing a track<br />
| Enter<br />
|-<br />
| Pause track <br />
| Space or p<br />
|- <br />
| Play next track<br />
| n<br />
|-<br />
| Play previous track<br />
| b<br />
|-<br />
| Switch from playlist browsing to filesystem browsing (and vice versa)<br />
| tab<br />
|-<br />
| Add one track to the playlist<br />
| a<br />
|-<br />
| Remove track from playlist<br />
| d<br />
|-<br />
| Add a folder recursively to playlist<br />
| A<br />
|-<br />
| Clear playlist<br />
| C<br />
|-<br />
| Increase volume 5%<br />
| . (dot)<br />
|-<br />
| Decrease volume 5%<br />
| , (comma)<br />
|-<br />
| Increase volume 1%<br />
| ><br />
|-<br />
| Decrease volume 1%<br />
| <<br />
|-<br />
| Change volume to 10%<br />
| meta + 1<br />
|-<br />
| Change volume to 20%<br />
| meta + 2<br />
|-<br />
| Quit player<br />
| q<br />
|}<br />
<br />
NOTE: To shut down the server, use the shift (capital) Q key or:<br />
$ mocp -x<br />
<br />
==Unstable versions==<br />
<br />
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.<br />
<br />
* {{AUR|moc-svn}}<br />
* {{AUR|moc-devel}} (alpha version for next release)<br />
<br />
==MOC + last.fm==<br />
<br />
If you want scrobble songs to last.fm you need moc >= 2.5.0. See [[#Unstable versions]] above.<br />
<br />
First install lastfmsubmitd. It is a daemon which is available in the "community" repository. To install it, first edit {{ic|/etc/lastfmsubmitd.conf}} and enable both daemons {{Ic|lastfmsubmitd}} and {{Ic|lastmp}} with {{Ic|systemctl}}.<br />
<br />
If services does not exist create them first:<br />
<br />
create {{Ic|/etc/systemd/system/lastmp.service}} file and add following in it:<br />
<br />
{{bc|[Unit]<br />
Description&#61;LastMP<br />
After&#61;mpd.service<br />
<br />
[Service]<br />
ExecStart&#61;/usr/bin/lastmp --no-daemon<br />
<br />
[Install]<br />
WantedBy&#61;multi-user.target}}<br />
<br />
<br />
create {{Ic|/etc/systemd/system/lastfmsubmitd.service}} file and add following in it:<br />
<br />
{{bc|[Unit]<br />
Description&#61;LastFM Submit daemon<br />
After&#61;network.target<br />
<br />
[Service]<br />
ExecStart&#61;/usr/bin/lastfmsubmitd --no-daemon<br />
<br />
[Install]<br />
WantedBy&#61;multi-user.target}}<br />
<br />
<br />
Now configure moc:<br />
<br />
$ vim ~/.moc/config<br />
add line:<br />
OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %b"<br />
<br />
change permission:<br />
<br />
$ sudo chmod -R 777 /var/spool/lastfm<br />
<br />
thats all.<br />
<br />
==Frontends==<br />
* {{AUR|dmenu_mocp}} is a dmenu frontend for moc<br />
* {{Pkg|moc-tray}} is a perl gtk dock that gives you access to moc functions<br />
<br />
==Troubleshooting==<br />
===moc fails to start===<br />
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/}}.</div>Frojnd