On Mon, Sep 10, 2001 at 11:05:07AM -0500, Russ Burdick wrote:
> i just came up with a suggestion for bbkeys. what would folks think
> about the ability to have bbkeys pass keypress events to a particular
> window. what i'm thinking is something like 
> 
> KeyToGrab(a), WithModifier(Control+Shift), WithAction(SendKeyTo), Window(gamp), 
>Key(a)
> 
> so that no matter what window was focused one could hit ctrl+shift+a to
> pause/resume their mp3 player. i can think of several other places where
> this would be convenient but thought i'd check if anyone else thought it
> would be of interest. the syntax for the command is open to debate, but
> those were the ideas i'd like to see in it (select window and the key
> you'd like to be sending it). anyone else have thoughts on this? i
> havent even looked at the bbkeys code yet, so i dont know how 'doable'
> this is. if anyone has comments in that direction i'd be interested
> aswell.
> 
> Russ
> 
...

You may be able to get the functionality you are looking for already. A few
mp3 players (at least gqmpeg) have fifo files that you just echo things
into to control them. For instance I have a bbkeys command that does

KeyToGrab(Right), WithModifier(Control+Mod1), WithAction(ExecCommand), \
DoThis(echo next > ~/.gqmpeg/command)
(its one line)

So control+alt+arrow moves to the next song. Handy. 

-- 

- Martin Robinson <[EMAIL PROTECTED]> -

Reply via email to