<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Laptop Pugilism</title>
	<atom:link href="http://olpugilist.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://olpugilist.wordpress.com</link>
	<description>learning 'bout lightweight linux</description>
	<lastBuildDate>Tue, 31 Mar 2009 00:03:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='olpugilist.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Laptop Pugilism</title>
		<link>http://olpugilist.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://olpugilist.wordpress.com/osd.xml" title="Laptop Pugilism" />
	<atom:link rel='hub' href='http://olpugilist.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Messin&#8217; with Moblin</title>
		<link>http://olpugilist.wordpress.com/2009/03/27/messin-with-moblin/</link>
		<comments>http://olpugilist.wordpress.com/2009/03/27/messin-with-moblin/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 03:56:02 +0000</pubDate>
		<dc:creator>olpugilist</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://olpugilist.wordpress.com/?p=18</guid>
		<description><![CDATA[Intel&#8217;s linux for us poor bastards with integrated graphics. Based on fedora (which I dislike since the OLPC) but very fast boot. After much tweaking, a requested purplish theme: Now even prettier! If only I didn&#8217;t have to compile everything from source because of the inadequate moblin repos&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=olpugilist.wordpress.com&amp;blog=6987161&amp;post=18&amp;subd=olpugilist&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://moblin.org/">Intel&#8217;s linux </a>for us poor bastards with integrated graphics. Based on fedora (which I dislike since the OLPC) but very fast boot.  After much tweaking, a requested purplish theme:</p>
<p><a href="http://olpugilist.files.wordpress.com/2009/03/purple.png"><img class="alignnone size-medium wp-image-19" title="purple" src="http://olpugilist.files.wordpress.com/2009/03/purple.png?w=300&#038;h=187" alt="purple" width="300" height="187" /></a></p>
<p>Now even prettier! If only I didn&#8217;t have to compile everything from source because of the inadequate moblin repos&#8230;</p>
<p><a href="http://olpugilist.files.wordpress.com/2009/03/pretty.png"><img class="alignnone size-medium wp-image-29" title="pretty" src="http://olpugilist.files.wordpress.com/2009/03/pretty.png?w=300&#038;h=187" alt="pretty" width="300" height="187" /></a></p>
<p style="text-align:center;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/olpugilist.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/olpugilist.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/olpugilist.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/olpugilist.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/olpugilist.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/olpugilist.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/olpugilist.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/olpugilist.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/olpugilist.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/olpugilist.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/olpugilist.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/olpugilist.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/olpugilist.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/olpugilist.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=olpugilist.wordpress.com&amp;blog=6987161&amp;post=18&amp;subd=olpugilist&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://olpugilist.wordpress.com/2009/03/27/messin-with-moblin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef4dad9064c664f9714c83904e8c7428?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">olpugilist</media:title>
		</media:content>

		<media:content url="http://olpugilist.files.wordpress.com/2009/03/purple.png?w=300" medium="image">
			<media:title type="html">purple</media:title>
		</media:content>

		<media:content url="http://olpugilist.files.wordpress.com/2009/03/pretty.png?w=300" medium="image">
			<media:title type="html">pretty</media:title>
		</media:content>
	</item>
		<item>
		<title>New Icon Set</title>
		<link>http://olpugilist.wordpress.com/2009/03/25/screens-galore/</link>
		<comments>http://olpugilist.wordpress.com/2009/03/25/screens-galore/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 04:02:26 +0000</pubDate>
		<dc:creator>olpugilist</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://olpugilist.wordpress.com/?p=12</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=olpugilist.wordpress.com&amp;blog=6987161&amp;post=12&amp;subd=olpugilist&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<a href='http://olpugilist.wordpress.com/2009/03/25/screens-galore/steam/' title='steam'><img data-attachment-id='13' data-orig-size='1280,800' data-liked='0'width="150" height="93" src="http://olpugilist.files.wordpress.com/2009/03/steam.png?w=150&#038;h=93" class="attachment-thumbnail" alt="steam" title="steam" /></a>
<a href='http://olpugilist.wordpress.com/2009/03/25/screens-galore/icons/' title='icons'><img data-attachment-id='14' data-orig-size='1280,800' data-liked='0'width="150" height="93" src="http://olpugilist.files.wordpress.com/2009/03/icons.png?w=150&#038;h=93" class="attachment-thumbnail" alt="icons" title="icons" /></a>

<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/olpugilist.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/olpugilist.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/olpugilist.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/olpugilist.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/olpugilist.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/olpugilist.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/olpugilist.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/olpugilist.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/olpugilist.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/olpugilist.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/olpugilist.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/olpugilist.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/olpugilist.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/olpugilist.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=olpugilist.wordpress.com&amp;blog=6987161&amp;post=12&amp;subd=olpugilist&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://olpugilist.wordpress.com/2009/03/25/screens-galore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef4dad9064c664f9714c83904e8c7428?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">olpugilist</media:title>
		</media:content>

		<media:content url="http://olpugilist.files.wordpress.com/2009/03/steam.png?w=150" medium="image">
			<media:title type="html">steam</media:title>
		</media:content>

		<media:content url="http://olpugilist.files.wordpress.com/2009/03/icons.png?w=150" medium="image">
			<media:title type="html">icons</media:title>
		</media:content>
	</item>
		<item>
		<title>Conky &lt;3 MOC</title>
		<link>http://olpugilist.wordpress.com/2009/03/17/conky-3-moc/</link>
		<comments>http://olpugilist.wordpress.com/2009/03/17/conky-3-moc/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 03:41:40 +0000</pubDate>
		<dc:creator>olpugilist</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://olpugilist.wordpress.com/?p=3</guid>
		<description><![CDATA[I used linux for a while before I ever became interested in messing with it. Really, the impetus was getting an OLPC XO. Suddenly I had this cute little computer that was absolutely unusable with Sugar! I installed XFCE but found that too a little heavy. Some more searching, a lot of reading of k.mandla [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=olpugilist.wordpress.com&amp;blog=6987161&amp;post=3&amp;subd=olpugilist&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I used linux for a while before I ever became interested in messing with it. Really, the impetus was getting an OLPC XO. Suddenly I had this cute little computer that was absolutely unusable with Sugar! I installed XFCE but found that too a little heavy. Some more searching, a lot of reading of <a href="http://kmandla.wordpress.com/">k.mandla</a> and <a href="http://urukrama.wordpress.com/">urukrama</a>, and I had a speedy Openbox XO. The difference that my intent and effort had made astounded me.</p>
<p>Fast forward past some experimentation with Puppy Linux on my primary, and I was setting up a new Ubuntu install (having killed my old one messing with GRUB). Xubuntu and kmandla&#8217;s speed tips were obviously the way to go.</p>
<p>So, why the blog? Well, I was messing around with moc and conky, combined the two with the help of <a href="http://polishlinux.org/apps/cli/moc-audio-player-advanced-tricks/" target="_blank">Treadstone</a>, and had something rather beautiful, if you ask me, and worth the 4 hours messing with conkyrc.</p>
<p>But htop wasn&#8217;t so happy about my constantly calling mocp -Q, so I thought a bit and mucked around a bit and came up with a script that got moc&#8217;s info only once and wrote it to a file for quick reading. Only 30% faster for the script calling mocp, but three times as fast for the other two!  I realized that I wanted to share this to (hopefully) help others with this and to encourage me to muck around a bit more.</p>
<p>So, the scripts:</p>
<pre style="padding-left:30px;">==================================================================================================

#/home/user/Documents/conky_moc.sh:
#!/bin/sh

mocp -i &gt; mocpinfo

STATE="`cat /home/user/mocpinfo | grep 'State:' | sed -e 's/^.*: //'`";
TITLE="`cat /home/user/mocpinfo | grep -m 1 'Title:' | sed -e 's/^.*: //'`";
if [ "$STATE" = "STOP" ]; then echo "                                            ";
elif [ "$TITLE" = "" ]; then
  FILE="`cat /home/user/mocpinfo | grep 'File:' | sed -e 's/^.*: //'`";
  echo "  $FILE  ";
else echo "  $TITLE  ";
fi</pre>
<pre style="padding-left:30px;">=================================================================================================</pre>
<pre style="padding-left:30px;">#./moc_state.sh
#!/bin/sh

STATE="`cat /home/user/mocpinfo | grep 'State:' | sed -e 's/^.*: //'`";
if [ "$STATE" = "PAUSE" ]; then STATE="---------------|PAUSED|----------------";
elif [ "$STATE" = "PLAY" ]; then STATE="";
elif [ "$STATE" = "STOP" ]; then STATE="----------|no music playing|-----------";
fi
echo "$STATE"

==================================================================================================

#./conky_moctime.sh
#!/bin/sh

STATE="`cat /home/user/mocpinfo | grep 'State:' | sed -e 's/^.*: //'`";
if [ "$STATE" != "STOP" ]; then
  TOTALTIME="`cat /home/user/mocpinfo | grep 'TotalSec:' | sed -e 's/^.*: //'`";
  CURRENTTIME="`cat /home/user/mocpinfo | grep 'CurrentSec:' | sed -e 's/^.*: //'`";
  if [ "$TOTALTIME" != "" ]; then
    if [ "$CURRENTTIME" != "" ]; then
      CURRENTTIME=`expr $CURRENTTIME \* 100`;
      TIMEBAR=`expr $CURRENTTIME \/ $TOTALTIME`;
    fi
  fi
  echo $TIMEBAR
else echo ""
fi

==================================================================================================

#/home/user/.conkyrc

alignment bottom_left
background no
border_width 0
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
font 6x10
gap_x 2
gap_y 1
#minimum_size 5 1
net_avg_samples 2
double_buffer yes
out_to_console no
own_window no
#own_window_class Conky
#own_window_type normal
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer no
show_graph_scale no
show_graph_range no

TEXT
     ${color lightgrey}${top name 1}${top cpu 1}%   (${top name 2}${top cpu 2}%)          #NO
BREAK#${top_mem name 1}${top_mem mem 1}%   (${top_mem name 2}${top_mem mem 2}%)         #NO
BREAK#${fs_free /mnt/sda2}                  ${fs_free /mnt/sda1}   ${fs_free /}          #NO
BREAK#${scroll 37 ${exec /home/user/Documents/conky_moc.sh}}
CPU ${cpubar 5, 300}     MEM ${membar 5, 300}     FS ${fs_bar 5, 20 /mnt/sda2}#NO
BREAK#${fs_bar 5, 180 /mnt/sda1}${fs_bar 5, 60 /}     MOC #NO
BREAK#${exec /home/user/Documents/conky_mocstate.sh}#NO
BREAK#${execibar 3 /home/user/Documents/conky_moctime.sh}

===================================================================================================</pre>
<p>Sorry about that awful conkyrc formatting. Just delete the #NOBREAK#s and note that there is an actual line break after conky_moc.sh.</p>
<p>Also, pretty screenshots!</p>

<a href='http://olpugilist.wordpress.com/2009/03/17/conky-3-moc/pause/' title='pause'><img data-attachment-id='4' data-orig-size='1280,800' data-liked='0'width="150" height="93" src="http://olpugilist.files.wordpress.com/2009/03/pause.png?w=150&#038;h=93" class="attachment-thumbnail" alt="pause" title="pause" /></a>
<a href='http://olpugilist.wordpress.com/2009/03/17/conky-3-moc/playing/' title='playing'><img data-attachment-id='5' data-orig-size='1280,800' data-liked='0'width="150" height="93" src="http://olpugilist.files.wordpress.com/2009/03/playing.png?w=150&#038;h=93" class="attachment-thumbnail" alt="playing" title="playing" /></a>
<a href='http://olpugilist.wordpress.com/2009/03/17/conky-3-moc/stop/' title='stop'><img data-attachment-id='6' data-orig-size='1280,800' data-liked='0'width="150" height="93" src="http://olpugilist.files.wordpress.com/2009/03/stop.png?w=150&#038;h=93" class="attachment-thumbnail" alt="stop" title="stop" /></a>

<p>Edit: Evidently <a href="http://blog.mindlesstechie.net/2009/01/12/conky-now-supports-moc-player/">some conkys support moc</a> but I&#8217;m afraid ubuntu&#8217;s default doesn&#8217;t seem to.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/olpugilist.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/olpugilist.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/olpugilist.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/olpugilist.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/olpugilist.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/olpugilist.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/olpugilist.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/olpugilist.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/olpugilist.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/olpugilist.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/olpugilist.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/olpugilist.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/olpugilist.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/olpugilist.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=olpugilist.wordpress.com&amp;blog=6987161&amp;post=3&amp;subd=olpugilist&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://olpugilist.wordpress.com/2009/03/17/conky-3-moc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef4dad9064c664f9714c83904e8c7428?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">olpugilist</media:title>
		</media:content>

		<media:content url="http://olpugilist.files.wordpress.com/2009/03/pause.png?w=150" medium="image">
			<media:title type="html">pause</media:title>
		</media:content>

		<media:content url="http://olpugilist.files.wordpress.com/2009/03/playing.png?w=150" medium="image">
			<media:title type="html">playing</media:title>
		</media:content>

		<media:content url="http://olpugilist.files.wordpress.com/2009/03/stop.png?w=150" medium="image">
			<media:title type="html">stop</media:title>
		</media:content>
	</item>
	</channel>
</rss>
