ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] Bug: escape has no effect in .ratpoisonrc


From: Michael Graham
Subject: Re: [RP] Bug: escape has no effect in .ratpoisonrc
Date: Tue, 11 Jul 2006 16:31:22 +0100

On 11/07/06, Edwin Stearns <address@hidden> wrote:
I use the following .ratpoisonrc to set the windows key as the escape key:


exec xmodmap -e "keycode 115 = F30"

escape F30


This only works sometimes.  Usually I have to call "C-t escape F30"
after ratpoison comes up to get the effect that I want.  I tried putting
"sleep 1" between the two calls, but this didn't fix the problem.

The problem here is that both the xmodmap and sleep commands are being
exec'd so run in parallel to ratpoison. I presume the following would
work:

In ratpoisonrc:
<blah>
exec crazyscript.sh

in crazyscript.sh

#!/bin/sh
xmodmap -e "keycode 115 = F30"
ratpoison -c "escape F30"

you might even be able to do exec xmodmap -e "keycode 115 = F30" &&
ratpoison -c "escape F30" in ratpoisonrc but I'm not sure.

--
Michael Graham <address@hidden>




reply via email to

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