intro
$ sudo pacman -Sy xbindkeys
$ xbindkeys --defaults > ~/.xbindkeysrc

now let’s edit the config file adding some lines about amarok commands.

# amaroK / OPEN
"amarok"
m:0x10 + c:237
Mod2 + NoSymbol

# amaroK / Play or stop
"amarok -t"
m:0x0 + c:162
NoSymbol

# amaroK / Stop
"amarok -s"
m:0x0 + c:164
NoSymbol

# amaroK / Previous
"amarok -r"
m:0x0 + c:144
NoSymbol

# amaroK / Next
"amarok -f"
m:0x0 + c:153
NoSymbol

# amaroK / Volume up
"dcop amarok player volumeUp"
m:0x0 + c:176
NoSymbol

# amaroK / Volume down
"dcop amarok player volumeDown"
m:0x0 + c:174
NoSymbol

this lines are setted up for my keyboard. just need to take the respective button on your keyboard with
$ xbindkeys -k
and copy/paste overwriting mine.
my .xbindkeysrc

finally add a symlink to your ~/.kde/Autostart ( or better, *i* have kde ;) )
$ cd ~/.kde/Autostart && ln -s `which xbindkeys` xbindkeys

that’s all. bb.

Share

  One Response to “xbindkeys amarok archlinux”

  1. It works! :)
    Thanks

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 deelab.org Suffusion theme by Sayontan Sinha