<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>The Ignition Project: Howto: Use GNOME media keys with Amarok 2.0</title>
    <link>http://www.ignition-project.com/articles/2009/01/11/howto-use-gnome-media-keys-with-amarok-2-0</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Open Source Collaboration Solutions</description>
    <item>
      <title>Howto: Use GNOME media keys with Amarok 2.0</title>
      <description>&lt;p&gt;Actually, this will work for anyone, regardless of desktop environment. GNOME users are the most affected, because GNOME doesn&amp;#8217;t send keys to Amarok for it to process.&lt;/p&gt;

&lt;p&gt;Anyway, this is really simple. First you need to know what your media keys are. I have a &lt;a href="http://www.daskeyboard.com/"&gt;Das Keyboard Professional&lt;/a&gt; so it lacks media keys; I use Meta and the numberpad to control my media stuff.&lt;/p&gt;

&lt;p&gt;First, install &lt;code&gt;xbindkeys&lt;/code&gt;. You probably already have it. Next, &lt;strong&gt;turn off Caps Lock, Numlock, and Scroll Lock&lt;/strong&gt;, then use &lt;code&gt;xbindkeys --key&lt;/code&gt; and press the key or key combination you want. You will likely get a name for the key like &lt;code&gt;XFMediaPlayPause&lt;/code&gt;. Failing that, you&amp;#8217;ll get a code. Either will work. Copy the code or better yet the name.&lt;/p&gt;

&lt;p&gt;Edit &lt;code&gt;~/.xbindkeys&lt;/code&gt;. Make yours like this:&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;&amp;quot;amarok --play-pause&amp;quot;
  Mod4 + KP_Multiply

&amp;quot;amarok --next&amp;quot;
  Mod4 + KP_Add

&amp;quot;amarok --previous&amp;quot;
  Mod4 + KP_Subtract&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;First line isn&amp;#8217;t indented and is the command to execute. Second is indented two spaces and the code you got previously.&lt;/p&gt;

&lt;p&gt;Add &lt;code&gt;xbindkeys&lt;/code&gt; to ~/.xinitrc (you may need to create it, &lt;code&gt;chmod +x&lt;/code&gt; it, and put &lt;code&gt;#!/bin/bash&lt;/code&gt; at the beginning of the file).&lt;/p&gt;

&lt;p&gt;Hopefully that helps!&lt;/p&gt;</description>
      <pubDate>Sun, 11 Jan 2009 23:45:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:dfd7b1de-8ab3-4db0-9154-ff9376149eb4</guid>
      <author>Keith Gable</author>
      <link>http://www.ignition-project.com/articles/2009/01/11/howto-use-gnome-media-keys-with-amarok-2-0</link>
      <category>Howto</category>
      <category>Linux</category>
      <category>howto</category>
      <category>amarok</category>
      <category>gnome</category>
    </item>
  </channel>
</rss>

