List Info

Thread: Multiple key bindings, is it possible?




Multiple key bindings, is it possible?
user name
2007-06-29 13:26:14
Hello!

I have configured kde to use the laptop multimedia buttons
on my machine.

I have them configured to operate amarok, previous, next,
stop,
play/pause etc, is is possible to have them also configured
to use
with xine at the same time.  I would like to be able to use
them with
xine while watching a movie and amarok while listening to my
music.

I have not found anything on this topic, thought maybe
someone on the
list would be able to tell me.

Thanks in advance.

-- 
John
Registered Linux User 263680, get counted at
http://counter.li.org
___________________________________________________
This message is from the kde mailing list.
Account management:  https://ma
il.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.

Re: Multiple key bindings, is it possible?
country flaguser name
Germany
2007-06-29 13:35:37
> I have configured kde to use the laptop multimedia
buttons on my machine.
>
> I have them configured to operate amarok, previous,
next, stop,
> play/pause etc, is is possible to have them also
configured to use
> with xine at the same time.  I would like to be able to
use them with
> xine while watching a movie and amarok while listening
to my music.
>   
I'd configure these hotkeys per application. Amarok can
configure global
hotkeys by itself and I hope, so can xine (don't know). The
application
grabs the hotkey when starting up, so the first one get's
it. I am doing
this with Amarok and Audacious so I can switch the
application and still
use the same hotkey.

Cheers,
Sascha




___________________________________________________
This message is from the kde mailing list.
Account management:  https://ma
il.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.
Re: Multiple key bindings, is it possible?
country flaguser name
Germany
2007-06-29 13:54:35
Hi John,

John Pierce (Friday, 2007-06-29):
> Hello!
>
> I have configured kde to use the laptop multimedia
buttons on my machine.
>
> I have them configured to operate amarok, previous,
next, stop,
> play/pause etc, is is possible to have them also
configured to use
> with xine at the same time.  I would like to be able to
use them with
> xine while watching a movie and amarok while listening
to my music.

I think the proper way to bind those hotkeys, is to make
them emit the proper 
XF86 key symbols (or whatever they are called). I have the
following entries 
in my ~/.Xmodmap:

keycode 129 = XF86Music
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 153 = XF86AudioNext
keycode 144 = XF86AudioPrev
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 160 = XF86AudioMute

You can figure out the keycodes with "xev".
They work in various programs without any further
configuration.

Patrick.

-- 
Key ID: 0x86E346D4            http://patrick-nagel
.net/key.asc
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3
46D4

___________________________________________________
This message is from the kde mailing list.
Account management:  https://ma
il.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.
Re: Multiple key bindings, is it possible?
user name
2007-06-29 13:58:05
> I'd configure these hotkeys per application. Amarok can
configure global
> hotkeys by itself and I hope, so can xine (don't know).
The application
> grabs the hotkey when starting up, so the first one
get's it. I am doing
> this with Amarok and Audacious so I can switch the
application and still
> use the same hotkey.
>
> Cheers,
> Sascha
Ok, I will try that.  That is probably the best way to
handle what I want.

-- 
John
Registered Linux User 263680, get counted at
http://counter.li.org
___________________________________________________
This message is from the kde mailing list.
Account management:  https://ma
il.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.h
tml.

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )