<?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/"
	>

<channel>
	<title>Lindoze.net &#187; Scripts</title>
	<atom:link href="http://blog.lindoze.net/tag/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lindoze.net</link>
	<description>Lindoze.net Weblog</description>
	<lastBuildDate>Sat, 02 Aug 2008 12:15:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Create rotating brushes with Gimp/Script-Fu</title>
		<link>http://blog.lindoze.net/software/gimp-rotating-brush/</link>
		<comments>http://blog.lindoze.net/software/gimp-rotating-brush/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 20:23:25 +0000</pubDate>
		<dc:creator>flo</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Gimp]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blog.lindoze.net/?p=26</guid>
		<description><![CDATA[The purpose of this script was to aid creating &#8220;rotating&#8221; brushes with Gimp. I often use them to create &#8220;stamp&#8221; brushes (e.g. grunge brushes) without every stamp looking the same. But the script of course can also be to create real rotating brushes like clocks, arrows, logos, whatever. And, yes, you also can create rotating [...]]]></description>
			<content:encoded><![CDATA[<p>The purpose of this script was to aid creating &#8220;rotating&#8221; brushes with <a title="The Gimp" href="http://www.gimp.org/" target="_blank">Gimp</a>. I often use them to create &#8220;stamp&#8221; brushes (e.g. grunge brushes) without every stamp looking the same. But the script of course can also be to create real rotating brushes like clocks, arrows, logos, whatever. And, yes, you also can create rotating GIFs very easily this way. Just save as a <em>*.gif</em>.</p>
<p><span id="more-26"></span><br />
If you have never used Gimp I recommend first looking at the tutorial at <a title="Gimp Image Pipes" href="http://adrian.gimp.org/gimppipe/" target="_blank">http://adrian.gimp.org/gimppipe/</a>.</p>
<h3>Usage</h3>
<p><a rel="lightbox[]" href="http://blog.lindoze.net/wp-content/gallery/gimp-rotating-brush/step1_createlayer.png" rel="lightbox[26]"><img class="ngg-singlepic ngg-left" style="float: left;" src="http://blog.lindoze.net/wp-content/gallery/gimp-rotating-brush/thumbs/thumbs_step1_createlayer.png" alt="Multi-Rotate/Start script" width="80" height="80" /></a>First create a new image with one layer (grayscale or transparent RGB, depends) and draw/copy your brush. Keep in mind that the center of your image will later be the center of the rotation. Eventually you have to move the brush layer to archieve this.</p>
<p><a rel="lightbox[]" href="http://blog.lindoze.net/wp-content/gallery/gimp-rotating-brush/step2_result.png" rel="lightbox[26]"><img class="ngg-singlepic ngg-right" style="float: right;" src="http://blog.lindoze.net/wp-content/gallery/gimp-rotating-brush/thumbs/thumbs_step2_result.png" alt="Multi-Rotate/Final result" width="80" height="80" /></a>Next start the script which can be found in <em>Script-Fu/Layers/Multi rotation</em> if it is properly installed (see below). Now select what the maximum rotation angle should be. I suggest 360 degree for rotating things and 180 or 90 degree if your brush has higher symmetry. Just play around with the settings.</p>
<p>After this you might want to resize the image because the canvas has been enlarged in order to fit the rotated layers.</p>
<p>Finally save your brush as a Gimp animated brush <em>*.gih</em> in you Gimp brush folder.</p>
<p>When I created this script I didn&#8217;t know that was already another one created by Rob Antonishen which more or less does the same. It can be found at <a title="Another script-fu script for rotating gimp brushes" href="http://ffaat.pointclark.net/blog/archives/145-Gimp-Script-to-Help-Make-Rotating-Brushes.html" target="_blank">http://ffaat.pointclark.net/</a>.</p>
<h3>Installation</h3>
<p>Just download the script below and copy it to your Gimp script folder. On Linux/Unix systems this usually is:</p>
<pre>~/.gimp-2.4/scripts</pre>
<p>and on Windows systems it should be somewhere in</p>
<pre>C:\Documents and Settings\<em>Your User</em>\gimp-2.4\scripts</pre>
<p>Can&#8217;t remember the exact location. It has been a while since I have used Gimp on Windows&#8230;</p>
<h3>Download</h3>
<ul>
<li><a href="http://blog.lindoze.net/wp-content/uploads/2008/03/multirotate.scm">multirotate.scm</a> (22 B, Gimp 2.4, GPL)<a href="http://blog.lindoze.net/wp-content/uploads/2008/03/multirotate.scm"><br />
</a></li>
</ul>
<h3>Known Bugs</h3>
<p>After the script created the new layers you need to select/click a different layer in order to update the Gimp image window.</p>
<p>By the way, this is my first Scheme script. So I&#8217;m glad that it works (for me) at all.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lindoze.net/software/gimp-rotating-brush/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Change volume using multimedia keys</title>
		<link>http://blog.lindoze.net/software/linux-volume-multimedia-keys/</link>
		<comments>http://blog.lindoze.net/software/linux-volume-multimedia-keys/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 20:21:46 +0000</pubDate>
		<dc:creator>flo</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blog.lindoze.net/?p=30</guid>
		<description><![CDATA[I was looking for a way to change the volume using the multimedia keys on my keyboard. There are quite a few programms that should do the job, but all of them where running as a daemon (background process). In my opinion this is unneccesary because I need to raise/lower/mute the volume only once in [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Example how it should look like" rel="lightbox[]" href="http://blog.lindoze.net/wp-content/gallery/linux-volume-multimedia-keys/volume_0.png" rel="lightbox[30]"><img class="ngg-singlepic ngg-left" style="float: left;" src="http://blog.lindoze.net/wp-content/gallery/linux-volume-multimedia-keys/thumbs/thumbs_volume_0.png" alt="Screenshot" /></a>I was looking for a way to change the volume using the multimedia keys on my keyboard. There are quite a few programms that should do the job, but all of them where running as a daemon (background process). In my opinion this is unneccesary because I need to raise/lower/mute the volume only once in a while. Therefore I wrote a quick&#8217;n'dirty bash script using ALSA&#8217;s <em>amixer</em> and the <em>osd_cat</em> utility.</p>
<p><span id="more-30"></span></p>
<h3>Features</h3>
<ul>
<li>Raise/Lower Volume</li>
<li>Mute/Unmute</li>
<li>Displays the current volume on-screen using <em>osd_cat</em></li>
</ul>
<h3>Usage</h3>
<p>Open the script file with your favourite editor edit following to lines to fit your needs:</p>
<pre>CONTROL="Front" CHANNEL="Front Left"</pre>
<p>CONTROL is used to set the volume and CHANNEL to get the current volume. Run <em>amixer</em> to see which is the right control and <em>amixer get YOUR-CONTROL</em> to select one channel listed there.</p>
<p><a title="Compiz Settings - General - Actions" rel="lightbox[]" href="http://blog.lindoze.net/wp-content/gallery/linux-volume-multimedia-keys/compiz-general-actions.png" rel="lightbox[30]"><img class="ngg-left ngg-singlepic" style="float: left;" src="http://blog.lindoze.net/wp-content/gallery/linux-volume-multimedia-keys/thumbs/thumbs_compiz-general-actions.png" alt="Compiz Settings - General - Actions" /></a>As I am using the <em>compiz-fusion</em> window manager along with the <em>XFCE</em> desktop I decided to use the built-in functions of compiz to bind the keys.</p>
<p style="text-align: center;"><a title="Compiz Settings - General - Actions" rel="lightbox[]" href="http://blog.lindoze.net/wp-content/gallery/linux-volume-multimedia-keys/compiz-general-actions.png"><br />
</a></p>
<p><a title="Compiz Settings - General - Commands" rel="lightbox[]" href="http://blog.lindoze.net/wp-content/gallery/linux-volume-multimedia-keys/compiz-general-commands.png" rel="lightbox[30]"><img class="ngg-right ngg-singlepic" style="float: right;" src="http://blog.lindoze.net/wp-content/gallery/linux-volume-multimedia-keys/thumbs/thumbs_compiz-general-commands.png" alt="Compiz Settings - General - Actions" /></a>In the <em>CompizConfig Settings Manager</em> select the <em>General Options</em> sub-dialog. Inside the <em>Commands</em> tab find three empty slots and bind them to:</p>
<pre><em>PATH-TO-THE-SCRIPT</em>/avolctrl.sh down <em>PATH-TO-THE-SCRIPT</em>/avolctrl.sh up <em>PATH-TO-THE-SCRIPT</em>/avolctrl.sh toggle</pre>
<p>Finally bind those command slots to your multimedia keys. For me these were:</p>
<pre>XF86AudioLowerVolume XF86AudioRaiseVolume XF86AudioMute</pre>
<h3>Prerequisites</h3>
<ul>
<li><em>amixer</em>: In <a title="Ubuntu" href="http://www.ubuntu.com" target="_blank">Ubuntu</a> you need to install the <strong>alsa-utils</strong> package.</li>
<li><em>osd_cat</em>: In <a title="Ubuntu" href="http://www.ubuntu.com" target="_blank">Ubuntu</a> you need to install the <strong>xosd-bin</strong> package. Source code can be downloaded from <a title="xosd" href="http://www.ignavus.net/software.html" target="_blank">http://www.ignavus.net/software.html</a>.</li>
</ul>
<p>For a different Linux distribution you need to find the appropriate packages your self or compile the binaries from the source code.</p>
<h3>Download</h3>
<ul>
<li><a href="http://blog.lindoze.net/wp-content/uploads/2008/03/avolctrl.sh">avolctrl.sh</a> (2 KiB, GPL)</li>
</ul>
<h3>Troubleshooting</h3>
<p>In case the keys don&#8217;t work, check if your keyboard sends events to the xserver using <em>xev</em>. Additionally you might have to define the keys properly using <em>xmodmap</em> if it does not work out-of-the-box. Following codes are working for me (Microsoft Comfort Curve Keyboard)</p>
<pre>keycode 160 = XF86AudioMute keycode 174 = XF86AudioLowerVolume keycode 176 = XF86AudioRaiseVolume</pre>
<h3>Known Bugs</h3>
<ul>
<li>No bugs known yet. As I said, very quick&#8217;n'dirty hack but should work anyway.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.lindoze.net/software/linux-volume-multimedia-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

