[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Executing programs with a keypress under X/wmaker



Low!!

On Wed, Sep 08, 1999 at 12:06:13AM -0500, Brad wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> On Fri, 3 Sep 1999, Brad wrote:
> 
> > I'm looking for a way to execute a command under X when certain key
> > combinations are pressed. Specifically, i want to make something like
> > windowbutton-X bring up an xterm. I don't want this command to attempt to
> > execute in the console.
> > 
> > I noticed the xkbevd program in xbase-clients, but even looking at the
> > source i can't figure out how to get it to do this. Is there a program out
> > there that will do what i want, or do i have to dig into xbooks and try to
> > write my own? (The X Keyboard Extentions look promising...)
> 
> Well, since no one even responded to my query, i did go ahead and write my
> own. If anyone would like to take a look, help debug it, just email me
> privately and i'll send you the sources.
> 
> The only problem i have is that the keystroke is delivered to the focused
> app, as well as launching the command. For example, if you used ctrl-D,
> and pressed it in a bash shell in an xterm, the shell will exit at the
> same time the command is launched...

That is why I guess the hot-keys is a job of window-manager...

Marcin

-- 

--------------------------------
Marcin Owsiany
porridge@pandora.info.bielsko.pl
--------------------------------


Reply to: