<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Weekend Discoveries &#8211; Rufscript, conky and xournal.</title>
	<atom:link href="http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/</link>
	<description>Technology, Science, Education, Travel, Photography, Books and life . . .</description>
	<lastBuildDate>Wed, 07 Dec 2011 14:20:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Nithin</title>
		<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/comment-page-1/#comment-91527</link>
		<dc:creator>Nithin</dc:creator>
		<pubDate>Mon, 20 Oct 2008 16:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/#comment-91527</guid>
		<description>Thanks for sharing your config file</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your config file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Peng</title>
		<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/comment-page-1/#comment-91440</link>
		<dc:creator>Charles Peng</dc:creator>
		<pubDate>Mon, 20 Oct 2008 06:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/#comment-91440</guid>
		<description>Thanks for sharing your .conkyrc file</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your .conkyrc file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jldugger</title>
		<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/comment-page-1/#comment-91424</link>
		<dc:creator>jldugger</dc:creator>
		<pubDate>Mon, 20 Oct 2008 03:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/#comment-91424</guid>
		<description>In add</description>
		<content:encoded><![CDATA[<p>In add</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rusty</title>
		<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/comment-page-1/#comment-91398</link>
		<dc:creator>rusty</dc:creator>
		<pubDate>Sun, 19 Oct 2008 23:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/#comment-91398</guid>
		<description>One tip for doing the switching back and forth for the wifi adapter would be to build two .rc files, one for the eth0 the other for ath0 or whatever your wifi adapter becomes. Then schedule a script every 5 min or so to see what interfaces are &#039;up&#039; (via ifconfig or route) and if the interface is different from what&#039;s in the current .rc file, switch in the one you would like to have. 


#!/bin/sh
# select an .rc file based on current interface is in use
export IFACE=`route &#124; grep default &#124; awk &#039;{ print $8 }&#039; `
diff ${IFACE}concyrc .concyrc &gt; /dev/null
if $?
   then
   # .concyrc is not for the current interface
   cp ${IFACE}concyrc .concyrc
   # if you need to restart conky with the new rc file, do so here
fi


or a variation customized for your setup. You might put the various .concyrc files in a specific subdirectory, remember to point at the correct location for the test as well.

Toss the file in your ~/bin/ or ~/scripts/ directory whichever is appropriate, test it to make sure it does what you want, and add:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * ~/scripts/checkinterface

to your crontab file (crontab -e) and it should automatically change the interface displayed in the monitor within 5 min of switching from one interface to the other.

If you would rather not use crontab, you could also add a link to your script into the /etc/network/if-up.d/ folder. My understanding is that these scripts automatically get run as interfaces go up, but I would suggest that testing that might be worth while.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>One tip for doing the switching back and forth for the wifi adapter would be to build two .rc files, one for the eth0 the other for ath0 or whatever your wifi adapter becomes. Then schedule a script every 5 min or so to see what interfaces are &#8216;up&#8217; (via ifconfig or route) and if the interface is different from what&#8217;s in the current .rc file, switch in the one you would like to have. </p>
<p>#!/bin/sh<br />
# select an .rc file based on current interface is in use<br />
export IFACE=`route | grep default | awk &#8216;{ print $8 }&#8217; `<br />
diff ${IFACE}concyrc .concyrc &gt; /dev/null<br />
if $?<br />
   then<br />
   # .concyrc is not for the current interface<br />
   cp ${IFACE}concyrc .concyrc<br />
   # if you need to restart conky with the new rc file, do so here<br />
fi</p>
<p>or a variation customized for your setup. You might put the various .concyrc files in a specific subdirectory, remember to point at the correct location for the test as well.</p>
<p>Toss the file in your ~/bin/ or ~/scripts/ directory whichever is appropriate, test it to make sure it does what you want, and add:</p>
<p>0,5,10,15,20,25,30,35,40,45,50,55 * * * * ~/scripts/checkinterface</p>
<p>to your crontab file (crontab -e) and it should automatically change the interface displayed in the monitor within 5 min of switching from one interface to the other.</p>
<p>If you would rather not use crontab, you could also add a link to your script into the /etc/network/if-up.d/ folder. My understanding is that these scripts automatically get run as interfaces go up, but I would suggest that testing that might be worth while.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward A Robinson</title>
		<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/comment-page-1/#comment-91393</link>
		<dc:creator>Edward A Robinson</dc:creator>
		<pubDate>Sun, 19 Oct 2008 23:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/#comment-91393</guid>
		<description>I am a fan of the dark theme until you brows the web then the contrast with white web pages hurts my eyes :(</description>
		<content:encoded><![CDATA[<p>I am a fan of the dark theme until you brows the web then the contrast with white web pages hurts my eyes <img src='/admin/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aanjhan</title>
		<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/comment-page-1/#comment-91385</link>
		<dc:creator>Aanjhan</dc:creator>
		<pubDate>Sun, 19 Oct 2008 21:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/#comment-91385</guid>
		<description>Thanks Derek. Looks much better now.</description>
		<content:encoded><![CDATA[<p>Thanks Derek. Looks much better now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Buranen</title>
		<link>http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/comment-page-1/#comment-91383</link>
		<dc:creator>Derek Buranen</dc:creator>
		<pubDate>Sun, 19 Oct 2008 21:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuxmaniac.com/blog/2008/10/19/weekend-discoveries-rufscript-conky-and-xournal/#comment-91383</guid>
		<description>try turning on autohinting?  It might make it look better.

http://tombuntu.com/index.php/2008/10/15/tweak-your-font-rendering-for-better-appearance/</description>
		<content:encoded><![CDATA[<p>try turning on autohinting?  It might make it look better.</p>
<p><a href="http://tombuntu.com/index.php/2008/10/15/tweak-your-font-rendering-for-better-appearance/" rel="nofollow">http://tombuntu.com/index.php/2008/10/15/tweak-your-font-rendering-for-better-appearance/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

