<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: MOC Audio Player &#8212; advanced tricks</title>
	<atom:link href="http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/</link>
	<description>All About GNU/Linux and BSD - reviews, comparisons, articles</description>
	<pubDate>Mon, 15 Mar 2010 20:38:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Laptop Pugilist</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-128035</link>
		<dc:creator>Laptop Pugilist</dc:creator>
		<pubDate>Tue, 17 Mar 2009 02:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-128035</guid>
		<description>Great article, mocp is just what I didn't know I was missing. Your scripts for conky are great too, though it's faster to just call mocp -i once:

#!/bin/sh

mocp -i &#62; mocpinfo

STATE="`cat /home/user/.moc/mocpinfo &#124; grep 'State:' &#124; sed -e 's/^.*: //'`";
TITLE="`cat /home/user/.moc/mocpinfo &#124; grep -m 1 'Title:' &#124; sed -e 's/^.*: //'`";
if [ "$STATE" = "STOP" ]; then echo „MOC”;
elif [ "$TITLE" = "" ]; then
  FILE="`cat /home/user/mocpinfo &#124; grep 'File:' &#124; sed -e 's/^.*: //'`";
  echo "  $FILE  ";
else echo "  $TITLE  ";
fi

The speedup isn't amazing unles (like I) you are also making a bar and paused/stopped indicator out of the same data. Those two scripts became three times as fast. As an added bonus it makes top look much neater!</description>
		<content:encoded><![CDATA[<p>Great article, mocp is just what I didn&#8217;t know I was missing. Your scripts for conky are great too, though it&#8217;s faster to just call mocp -i once:</p>
<p>#!/bin/sh</p>
<p>mocp -i &gt; mocpinfo</p>
<p>STATE=&#8221;`cat /home/user/.moc/mocpinfo | grep &#8216;State:&#8217; | sed -e &#8217;s/^.*: //&#8217;`&#8221;;<br />
TITLE=&#8221;`cat /home/user/.moc/mocpinfo | grep -m 1 &#8216;Title:&#8217; | sed -e &#8217;s/^.*: //&#8217;`&#8221;;<br />
if [ "$STATE" = "STOP" ]; then echo „MOC”;<br />
elif [ "$TITLE" = "" ]; then<br />
  FILE=&#8221;`cat /home/user/mocpinfo | grep &#8216;File:&#8217; | sed -e &#8217;s/^.*: //&#8217;`&#8221;;<br />
  echo &#8221;  $FILE  &#8220;;<br />
else echo &#8221;  $TITLE  &#8220;;<br />
fi</p>
<p>The speedup isn&#8217;t amazing unles (like I) you are also making a bar and paused/stopped indicator out of the same data. Those two scripts became three times as fast. As an added bonus it makes top look much neater!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LETRA</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-126361</link>
		<dc:creator>LETRA</dc:creator>
		<pubDate>Sat, 15 Nov 2008 20:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-126361</guid>
		<description>Good article, moc is my first music player option since three years. Thanks from Spain. Greets.</description>
		<content:encoded><![CDATA[<p>Good article, moc is my first music player option since three years. Thanks from Spain. Greets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allison</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-121421</link>
		<dc:creator>Allison</dc:creator>
		<pubDate>Fri, 16 May 2008 07:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-121421</guid>
		<description>Wonderful article. I use both Moc and Mpd. Even though Moc is my primary music player, My roomy loves Mpd + Sonata. I share my computer with her so it's kind of give and take. Both are very cool music players!

For some time I've been trying to get a conky execibar to display a songs length correctly. I don't know much about scripting, but I can sure botch up a script a perectly good script with some fiddling! How would you add that fuction to your script above?</description>
		<content:encoded><![CDATA[<p>Wonderful article. I use both Moc and Mpd. Even though Moc is my primary music player, My roomy loves Mpd + Sonata. I share my computer with her so it&#8217;s kind of give and take. Both are very cool music players!</p>
<p>For some time I&#8217;ve been trying to get a conky execibar to display a songs length correctly. I don&#8217;t know much about scripting, but I can sure botch up a script a perectly good script with some fiddling! How would you add that fuction to your script above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: finferflu</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-95152</link>
		<dc:creator>finferflu</dc:creator>
		<pubDate>Mon, 24 Dec 2007 16:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-95152</guid>
		<description>@ Ravi S. Ghosh
While your argument is valid, I don't think MPD is that heavy on resources, not even noticeable.

@ tash
I use MPD to play files straight from my HD. MPD can play both locally and remotely. 

I personally like MPD a lot, but I'm not completely satisfied by the MPD clients. I only wish MOC had support for MPD.</description>
		<content:encoded><![CDATA[<p>@ Ravi S. Ghosh<br />
While your argument is valid, I don&#8217;t think MPD is that heavy on resources, not even noticeable.</p>
<p>@ tash<br />
I use MPD to play files straight from my HD. MPD can play both locally and remotely. </p>
<p>I personally like MPD a lot, but I&#8217;m not completely satisfied by the MPD clients. I only wish MOC had support for MPD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tash</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-73330</link>
		<dc:creator>tash</dc:creator>
		<pubDate>Tue, 30 Oct 2007 14:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-73330</guid>
		<description>i used to use mpd but switched to moc b. it more fits my needs, i'm not playing remotely and moc can play files straight from my hd which mpd cant.</description>
		<content:encoded><![CDATA[<p>i used to use mpd but switched to moc b. it more fits my needs, i&#8217;m not playing remotely and moc can play files straight from my hd which mpd cant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi S Ghosh</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-49025</link>
		<dc:creator>Ravi S Ghosh</dc:creator>
		<pubDate>Sat, 11 Aug 2007 00:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-49025</guid>
		<description>Moc is better than mpd in my opinion since, mpd keeps on running all the time draining the processor even when it is not required.</description>
		<content:encoded><![CDATA[<p>Moc is better than mpd in my opinion since, mpd keeps on running all the time draining the processor even when it is not required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pedro-kun</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-47152</link>
		<dc:creator>pedro-kun</dc:creator>
		<pubDate>Fri, 03 Aug 2007 10:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-47152</guid>
		<description>Excelent article, indeed :)

I'm not gonna use moc, but i do use mpd all the time, which is pretty much the same thing, with some database capabilities.

I highly recomend this tutorial for everyone :)</description>
		<content:encoded><![CDATA[<p>Excelent article, indeed <img src='http://polishlinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m not gonna use moc, but i do use mpd all the time, which is pretty much the same thing, with some database capabilities.</p>
<p>I highly recomend this tutorial for everyone <img src='http://polishlinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CD Baric</title>
		<link>http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-46401</link>
		<dc:creator>CD Baric</dc:creator>
		<pubDate>Tue, 31 Jul 2007 18:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/#comment-46401</guid>
		<description>Excellent article - will download and install today.

I am a great believer in the utility and power of the command line - I still use mplayer in command line mode for everything.

Thanks again,

CD 'Bar' Baric</description>
		<content:encoded><![CDATA[<p>Excellent article - will download and install today.</p>
<p>I am a great believer in the utility and power of the command line - I still use mplayer in command line mode for everything.</p>
<p>Thanks again,</p>
<p>CD &#8216;Bar&#8217; Baric</p>
]]></content:encoded>
	</item>
</channel>
</rss>
