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: Christian Gennerat
Subject: Re: [RP] Ratpoison for laptop and apm
Date: Fri Mar 22 05:24:04 2002

Gergely Nagy a écrit :

> > I have developped a new action:
> > apm that display the apm status (mode, battery and time)
>
> Couldn't this be implemented outside of RP? I'm thinking of a
> command-line tool that would just display the information on stdout,
> then pass that to ratpoison -c message. Something like this:
>
> 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




reply via email to

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