<?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>rullzer &#187; hotkeys</title>
	<atom:link href="http://rullzer.com/blog/tag/hotkeys/feed/" rel="self" type="application/rss+xml" />
	<link>http://rullzer.com/blog</link>
	<description>an experience beyond</description>
	<lastBuildDate>Thu, 24 Jun 2010 22:23:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mute</title>
		<link>http://rullzer.com/blog/2007/10/17/mute/</link>
		<comments>http://rullzer.com/blog/2007/10/17/mute/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 16:21:26 +0000</pubDate>
		<dc:creator><span property="dc:creator" resource="http://rullzer.com/blog/2007/10/17/mute/">rullzer</span></dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[FN]]></category>
		<category><![CDATA[hotkeys]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://rullzer.com/blog/2007/10/17/mute/</guid>
		<description><![CDATA[So I just compiled warsow. Since I wanted a nice FPS to play with my friends. Ah well anyway. When I was in full screen I noticed that I wasn&#8217;t able to change the volume of the sound. So I spend some time playing with acpid to get it to react to my FN keys. [...]]]></description>
			<content:encoded><![CDATA[<p>So I just compiled warsow. Since I wanted a nice FPS to play with my friends. Ah well anyway. When I was in full screen I noticed that I wasn&#8217;t able to change the volume of the sound. So I spend some time playing with acpid to get it to react to my FN keys. Well that all worked. Getting the volume up and down was easy. Thanks to the nice program amixer. However toggeling the mute took some time to figure out. Well not the muting and unmuting itself that was easy. But to toggle it. So I ended up writing a simple bash script:</p>
<p><code>#!/bin/bash<br />
numid="2" #Find by running amixer controls<br />
volume=$(amixer cget numid=$numid | grep <img src='http://rullzer.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
volume=${volume: -3}<br />
if [[ $volume = 'off' ]]<br />
then<br />
        amixer cset numid=$numid on &#038;> /dev/null<br />
else<br />
        amixer cset numid=$numid off &#038;> /dev/null<br />
fi</code></p>
<p>Maybe it is of good use for you to <img src='http://rullzer.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rullzer.com/blog/2007/10/17/mute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
