[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] ratpoison+xbindkey problems...
From: |
Vardhan Varma |
Subject: |
[RP] ratpoison+xbindkey problems... |
Date: |
Thu Oct 17 21:58:06 2002 |
User-agent: |
Mutt/1.4i |
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
- [RP] ratpoison+xbindkey problems...,
Vardhan Varma <=