ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] Ratpoison for laptop and apm


From: Gergely Nagy
Subject: Re: [RP] Ratpoison for laptop and apm
Date: Fri Mar 22 05:43:02 2002
User-agent: Mutt/1.3.27i

> > ratpoison -c "message $(apm-status)"
> >
> > Using aliases and bind, you could achieve the same thing, without
> > touching ratpoison code. That'd keep it smaller.
> >
> 
> Exact, inside xterm, I can do
> ratpoison -c "echo `apm`"
> and get that I want, because the shell replaces `apm` by the report of apm 
> command.
> but when I enter
> echo `apm`
> or
> echo exec apm
> at the ratpoison prompt, I get exactly what I have keyed, and no more

I was thinking of something like this:

alias apm exec ratpoison -c "echo $(apm)"

I don't have apm, but C-t bind h exec ratpoison -c "echo $(echo foo)"
worked correctly. (C-t h showed "foo")



reply via email to

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