Multimedia Keys on Laptop - special control
Hello.
I would like to use my multimedia keys on the laptop.
As I have seen in kde, they are recognized already, very good.
But I would like to use the play-pause, ffd, rwd and stop button
in a special way.
After pressing one of them , a programm or script is called, which does:
a ) determine the entries ( in a list ) of assigned applications to
be controlles by this mm-buttons.
( The list can be edited, I decide to add vlc, amarok, flash
plugin for firefox )
b ) determine, which of the applications are running actually
c ) determine, which of this applications has the focus ( means,
which of them ( if all more running ) is "the active one".
d ) issue its shell command, which corresponds to the keyhit (
play, pause, fwd, rwd, stop )
Now my question : Is it all possible via shell/and or x-script?
If not, i will have to code something, i suppose.
THX in advance.
Greetings
me-$-on
|