ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] ratpoison+xbindkey problems...


From: Vardhan Varma
Subject: Re: [RP] ratpoison+xbindkey problems...
Date: Thu Oct 17 22:02:07 2002
User-agent: Mutt/1.4i

Okay I got the bug .....
  >ratpoison -c window
  in the dialog box, give arbitrary name
  and ratpoison goes in a infinite loop ...


  what we need is a switch to be given with -c, which makes it non-interactive

--Regards
--Vardhan

On Fri, Oct 18, 2002 at 10:26:02AM +0530, Vardhan Varma wrote:
> 
>  Hi all,
>   
>   I'm having ratpoison entering infinite loop, repeatedly display
>   'ERROR -- bad window handle' or something like it when using
>   along with xbindkeys.
> 
>   Basically i have a little shell script
> 
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> #!/bin/sh -f
> 
> ## Find the window, or run the command to create the window ...
> ## $1 -- RE matching window name
> ## $2 -- Command to run if window not found
> 
> 
> ## After running $2, wait for two seconds, and print the
> ## name of newly created window(s).
> 
> 
> 
> ### Get existing windows
> ratpoison -c "windows %n %t" > /tmp/win$$.1
> c=`grep -- "$1" /tmp/win$$.1 | cut -d' '  -f1`
> 
> 
> if [ "$c" == "" ] ; then
>   $2 &
>   sleep 2
>   ratpoison -c "windows %n %t" > /tmp/win$$.2
>   #diff /tmp/win$$.1 /tmp/win$$.2
> 
>   ratpoison -c "windows %n %t" > /tmp/win$$.1
>   c=`grep -- "$1" /tmp/win$$.1 | cut -d' '  -f1`
> fi
> 
> ratpoison -c "select $c"
> 
>   
> 
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 
>  and in ~/.xbindkeys
> 
> "win 'Mutt' 'xterm -fn 10x20 -T Mutt -e mutt' &"
>     XF86Launch1
> 
> 
>   Questions:
> 1. Does order of starting ratpoison and xbindkeys matter ? Should it matter ?
> 2. is it a proble, with both grabbing the keyboard. 
>   In fact, I'ld be prefectly happy with ratpoison NOT grabbing the keyboard,
>   and xbindkeys invking 'ratpoison -c ' on hot keys. 
> 
> 
> --Regards
> --Vardhan
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Ratpoison-devel mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/ratpoison-devel

-- 
Dynamic signature



reply via email to

[Prev in Thread] Current Thread [Next in Thread]